Skip to content

Commit 7cb2429

Browse files
authored
footer: remove trailing slashes to prevent 404s (#31)
I found an edge case: on GitHub Pages, with `uglyURLs` enabled, extensionless paths with trailing slashes return `404`. Footer links currently include trailing slashes, so they are 404ing. This change removes trailing slashes from footer links so they resolve correctly. Path behavior: /architecture.html = ✅ /architecture = ✅ /architecture/ = ❌
2 parents 70f6cc9 + 41844b5 commit 7cb2429

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

layouts/partials/footer.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
<nav>
44
<ul>
55
<li><a href="{{ relURL "/" }}">Home</a></li>
6-
<li><a href="{{ relURL "architecture/" }}">Architecture</a></li>
7-
<li><a href="{{ relURL "reply-to-this/" }}">Reply to this</a></li>
6+
<li><a href="{{ relURL "/architecture" }}">Architecture</a></li>
7+
<li><a href="{{ relURL "/reply-to-this" }}">Reply to this</a></li>
88
</ul>
99
</nav>
1010
<a class="footer-home-link" href="{{ relURL "/" }}" aria-label="Home">

0 commit comments

Comments
 (0)