Skip to content

footer: remove trailing slashes to prevent 404s#31

Open
ritorhymes wants to merge 1 commit intogitgitgadget:mainfrom
ritovision:footer
Open

footer: remove trailing slashes to prevent 404s#31
ritorhymes wants to merge 1 commit intogitgitgadget:mainfrom
ritovision:footer

Conversation

@ritorhymes
Copy link
Contributor

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/ = ❌

trailing slashes result in 404 for GitHub Pages when
an extensionless path is used with uglyURLs enabled
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant