mirror of
https://github.com/netbox-community/netbox.git
synced 2025-12-19 03:42:25 -06:00
Fixes #7096: Home links should honor BASE_PATH configuration
This commit is contained in:
@@ -7,12 +7,12 @@
|
||||
{# Brand #}
|
||||
|
||||
{# Full Logo #}
|
||||
<a class="sidenav-brand" href="/">
|
||||
<a class="sidenav-brand" href="{% url 'home' %}">
|
||||
<img src="{% static 'netbox_logo.svg' %}" height="48" class="sidenav-brand-img" alt="NetBox Logo">
|
||||
</a>
|
||||
|
||||
{# Icon Logo #}
|
||||
<a class="sidenav-brand-icon" href="/">
|
||||
<a class="sidenav-brand-icon" href="{% url 'home' %}">
|
||||
<img src="{% static 'netbox_icon.svg' %}" height="32" class="sidenav-brand-img" alt="NetBox Logo">
|
||||
</a>
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
The file <code>{{ filename }}</code> exists in the static root directory and is readable by the HTTP process.
|
||||
</li>
|
||||
</ul>
|
||||
<p>Click <a href="/">here</a> to attempt loading NetBox again.</p>
|
||||
<p>Click <a href="{% url 'home' %}">here</a> to attempt loading NetBox again.</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -9,5 +9,5 @@
|
||||
{% block title %}{% if name %}{{ name }} | {% endif %}NetBox REST API{% endblock %}
|
||||
|
||||
{% block branding %}
|
||||
<a class="navbar-brand" href="/{{ settings.BASE_PATH }}">NetBox</a>
|
||||
<a class="navbar-brand" href="{% url 'home' %}">NetBox</a>
|
||||
{% endblock branding %}
|
||||
|
||||
Reference in New Issue
Block a user