Replies: 1 comment
-
We have a trailingSlash config, and your host Nging probably have one too. First you need to define if you want a trailing slash or not for the canonical/reference urls, and then configure both tools accordingly. Both are possible depending on hosts/tools you choose. Unfortunately it's specific to hosts/tools and we can't document all tools exhaustively. I don't know Nginx so unfortunately you'll have to figure this out yourself or ask the community on Discord. My intuition is that you should use either |
Beta Was this translation helpful? Give feedback.
-
Environment
Docusaurus Version: 3.6.0
Self-hosted: Nginx
Nginx.conf:
Question
When I click on the document in the sidebar, the URL does not carry
/
.When I enter the
https://www.rainbond.com/docs/quick-start/quick-install
URL directly in the browser, it will automatically add/
at the end, for example:https://www.rainbond.com/docs/quick-start/quick-install/
In
sitemap.xml
,https://www.rainbond.com/docs/quick-start/quick-install
did not carry/
.This would cause algolia crawler to not use sitemap to properly index my document.
Looking forward to reply.
Beta Was this translation helpful? Give feedback.
All reactions