Pervent reverse tabnabbing in edx platform
This commit is contained in:
@@ -12,10 +12,10 @@
|
||||
<div class="setup-value">
|
||||
<% if (cohort.get('assignment_type') == "manual") { %>
|
||||
<%- gettext("Learners are added to this cohort only when you provide their email addresses or usernames on this page.") %>
|
||||
<a href="/help_token/cohortmanual" class="incontext-help action-secondary action-help" target="_blank"><%- gettext("What does this mean?") %></a>
|
||||
<a href="/help_token/cohortmanual" class="incontext-help action-secondary action-help" rel="noopener" target="_blank"><%- gettext("What does this mean?") %></a>
|
||||
<% } else { %>
|
||||
<%- gettext("Learners are added to this cohort automatically.") %>
|
||||
<a href="/help_token/cohortautomatic" class="incontext-help action-secondary action-help" target="_blank"><%- gettext("What does this mean?") %></a>
|
||||
<a href="/help_token/cohortautomatic" class="incontext-help action-secondary action-help" rel="noopener" target="_blank"><%- gettext("What does this mean?") %></a>
|
||||
<% } %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -11,7 +11,7 @@ from openedx.core.djangolib.markup import HTML, Text
|
||||
<p>
|
||||
<em>
|
||||
${Text(_("For analytics about your course, go to {link_start}{analytics_dashboard_name}{link_end}.")).format(
|
||||
link_start=HTML('<a href="{dashboard_url}" target="_blank">').format(
|
||||
link_start=HTML('<a href="{dashboard_url}" rel="noopener" target="_blank">').format(
|
||||
dashboard_url=escape_uri_path('{base_url}/courses/{course_id}'.format(
|
||||
base_url=settings.ANALYTICS_DASHBOARD_URL,
|
||||
course_id=section_data['course_id'],
|
||||
|
||||
Reference in New Issue
Block a user