6698d26fba
Angular Panels have enabled ngRoute and HTML5 which allows Angular to handle routing which makes all routes to pass via Angular. Links that do not have route defintion as a result stop working. This can be fixed by specifying the target="_self" on the <a> tags. This is already in place for the Sidebar. It needs to done for the Header Links as well. Closes-Bug: #1531734 Change-Id: Ida76b40fdf0b66ba3ee3af4d32701974c312af57
18 lines
476 B
HTML
18 lines
476 B
HTML
{% load i18n %}
|
|
|
|
{% with dashboard_url=request.horizon.dashboard.get_absolute_url %}
|
|
<ul>
|
|
<li class="dropdown-header">{% trans "Projects:" %}</li>
|
|
{% for project in projects %}
|
|
<li>
|
|
<a href="{% url 'switch_tenants' project.id %}?next={{ dashboard_url }}" target="_self">
|
|
{{ project.name }}
|
|
{% if project.enabled and project.id == project_id %}
|
|
<span class="fa fa-check"></span>
|
|
{% endif %}
|
|
</a>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endwith %}
|