Skip to content
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

fix: serve all pages also with trailing slashes #1561

Closed
wants to merge 3 commits into from

Conversation

Skn0tt
Copy link
Member

@Skn0tt Skn0tt commented Oct 14, 2024

Following https://github.com/slorber/trailing-slash-guide and https://docusaurus.io/docs/api/docusaurus-config#trailingSlash, setting trailingSlash: true will make Docusaurus emit intro.md as /intro/index.html instead of /intro.html. This will make GH Pages serve the file for both /intro and /intro/, as opposed to just for /intro.

Closes #1560

We orginally set trailingSlash: false to fix microsoft/playwright#10849. I don't think that should regress now, because the key to solving it was that trailingSlash: false makes Docusaurus normalise URLs. That still happens with trailingSlash: true.

@Skn0tt Skn0tt requested a review from mxschmitt October 14, 2024 08:29
@Skn0tt Skn0tt self-assigned this Oct 14, 2024
@Skn0tt Skn0tt changed the title fix: make /intro/ work fix: serve all pages also with trailing slashes Oct 14, 2024
@Skn0tt
Copy link
Member Author

Skn0tt commented Oct 14, 2024

Sorry, false alarm. Can't make this work with emitting the right links :/

@Skn0tt Skn0tt closed this Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant