You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
domain: trailing slashRelated to trailing slash configfeatureThis is not a bug or issue with Docusausus, per se. It is a feature request for the future.
In order to keep consistency, there should be an option for sidebar links to have a trailing comma by default, without resorting to a longer sidebar item format.
I've noticed that the trailing slash potentially destroys internal links as well since the relative root is different. Don't know if this is a separate bug or a side effect.
Reacted by rlirli, Antonin Delpeuch, Martin-Holos, Hugo Masclet, Daniel Porteous (dport) and Tyler Hoffman
This also breaks Azure Front Door routes. I migrated a Docusaurus + GitHub Pages site to Azure Web Apps behind an Azure Front Door and all site pages without a trailing / redirect by Front Door presumably correctly, but the Docusaurus compiled application routes to a / and when it does this is referrer is the backend server name not the custom domain name with the URL and trailing / appended.
It appears, also there may be something deployed in the root that does dynamic routing, otherwise, I'd expect Docusaurus compiler to simply create all URL paths with / or without.
I like this feature request and hope it addresses my issue as well.
I think we should take a stance here and add trailing / to all Docusaurus-generated URLs. This will bridge the differences during development and deployed. cc @lex111@slorber
Reacted by Kristóf Poduszló, Sébastien Lorber, Michael Faux, Nicholas Nezis, Marika Marszalkowski, Helder S Ribeiro, Ramón Lamana, August Luhrs and Pedro Aguiar
domain: trailing slashRelated to trailing slash configfeatureThis is not a bug or issue with Docusausus, per se. It is a feature request for the future.
Activity
davidhagg commentedon Apr 30, 2020
I've noticed that the trailing slash potentially destroys internal links as well since the relative root is different. Don't know if this is a separate bug or a side effect.
dotansimha commentedon May 19, 2020
@davidhagg Same here. I'm deploying to GH Pages (v2, latest alpha). It seems like it adds
/always to all pages, so relative links are broken :(awentzel commentedon May 27, 2020
This also breaks Azure Front Door routes. I migrated a Docusaurus + GitHub Pages site to Azure Web Apps behind an Azure Front Door and all site pages without a trailing
/redirect by Front Door presumably correctly, but the Docusaurus compiled application routes to a/and when it does this is referrer is the backend server name not the custom domain name with the URL and trailing/appended.It appears, also there may be something deployed in the root that does dynamic routing, otherwise, I'd expect Docusaurus compiler to simply create all URL paths with
/or without.I like this feature request and hope it addresses my issue as well.
yangshun commentedon Jun 5, 2020
I think we should take a stance here and add trailing / to all Docusaurus-generated URLs. This will bridge the differences during development and deployed. cc @lex111 @slorber
slorber commentedon Oct 1, 2020
Closing in favor of #3372