Skip to content

Commit 85c91b2

Browse files
committed
Fix the relative links on sidebar tabs.
1 parent b874af2 commit 85c91b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_includes/sidebar.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@
3131
<ul class="nav flex-column">
3232
<!-- home -->
3333
<li class="nav-item d-flex justify-content-center {% if page.layout == 'home' %}active{% endif %}">
34-
<a href="/" class="nav-link d-flex justify-content-center align-items-center w-100">
34+
<a href="{{ '/' | relative_url }}" class="nav-link d-flex justify-content-center align-items-center w-100">
3535
<i class="fa-fw fas fa-home ml-xl-3 mr-xl-3 unloaded"></i>
3636
<span>{{ "HOME" }}</span>
3737
</a>
3838
</li>
3939
<!-- the real tabs -->
4040
{% for tab in site.tabs %}
4141
<li class="nav-item d-flex justify-content-center {% if tab.url == page.url %}active{% endif %}">
42-
<a href="{{ tab.url }}" class="nav-link d-flex justify-content-center align-items-center w-100">
42+
<a href="{{ tab.url | relative_url }}" class="nav-link d-flex justify-content-center align-items-center w-100">
4343
<i class="fa-fw {{ tab.icon }} ml-xl-3 mr-xl-3 unloaded"></i>
4444
<span>{{ tab.title | upcase }}</span>
4545
</a>

0 commit comments

Comments
 (0)