Skip to content

Fix 404 on pages with trailing slashes #300

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Nov 4, 2019

Conversation

kHarshit
Copy link
Contributor

@kHarshit kHarshit commented Nov 3, 2019

As mentioned on Jekyll 2->3 migration guide, certain URLs with trailing slashes return 404.

For example,
https://pytorch.org/hub works, but https://pytorch.org/hub/ doesn't

I think that one of the solution is add trailing slashes in the permalink, the other is to rename files to index.html e.g. in hub/ folder rename hub.html to index.html.

This PR adds trailing slashes, but doing so will break the link https://pytorch.org/hub.html. I don't think it'll cause any problem as all the URLs in this repo use /hub.

@soumith soumith merged commit efe79ee into pytorch:site Nov 4, 2019
@soumith
Copy link
Member

soumith commented Nov 4, 2019

thanks!

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.

2 participants