-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
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
Links to other docs pages are broken in github pages due to additional / #5026
Comments
That's funny because this issue is solved by the brand new beta.1 For GH pages we now recommend using See also https://github.com/slorber/trailing-slash-guide to understand how GH pages behave. https://docusaurus.io/docs/deployment#trailing-slashes As this is a new option, please let me know if |
Yes.
That would be nice, although I'm deploying with a dedicated github action which doesn't use |
Thanks for the feedback. For GH action deploy then we can't do anything apart from documenting it. |
Yeah, makes sense. Was just mentioning to say it won't affect me personally. |
🐛 Bug Report
Prerequisites
npm run clear
oryarn clear
command.rm -rf node_modules yarn.lock package-lock.json
and re-installing packages.Description
Deep links don't work correctly when deployed to github pages. Example:
this link points to
.../create-a-page
, but is redirected to.../create-a-page/
. Displaying the page works, but clicking a link to another page (hereCongratulations
), loads.../create-a-page/congratulations
instead of the correct.../congratulations
Have you read the Contributing Guidelines on issues?
Yes
Steps to reproduce
Use https://new.docusaurus.io to create a CodeSandbox reproducible demo of the bug.
(Write your steps here:)
Page Not Found
Expected behavior
Links to other pages behave correctly when the url has an additional slash appended.
Actual behavior
Links to other pages don't work when the url has an additional slash appended.
Your environment
Reproducible demo
https://github.com/F43nd1r/docusaurus-link-issue-reproducer
Go to https://f43nd1r.github.io/docusaurus-link-issue-reproducer/, click the link and then click on the congratulations link in the page.
The text was updated successfully, but these errors were encountered: