Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

footer: remove trailing slashes to prevent 404s#31

Open
ritorhymes wants to merge 1 commit intogitgitgadget:maingitgitgadget/gitgitgadget.github.io:mainfrom
ritovision:footerritovision/gitgitgadget.github.io:footerCopy head branch name to clipboard
Open

footer: remove trailing slashes to prevent 404s#31
ritorhymes wants to merge 1 commit intogitgitgadget:maingitgitgadget/gitgitgadget.github.io:mainfrom
ritovision:footerritovision/gitgitgadget.github.io:footerCopy head branch name to clipboard

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.