-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
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
Can no longer remove /docs from the URL since v59 #3126
Comments
Thanks! #3120 adds empty string |
@Dannyholt , as far as I understand, you want docs to be at the root path, yet being able to provide custom pages also under "/". Actually we had some important refactors on how docs are handled, as they were quite a few bugs, but we should support this usecase and will probably release a fix soon. Can you confirm this only affect your homepage? or do you see other pages for which this is a problem? @teikjun this is not related to the '' value specifically, but to this code that removes the homepage in particulary:
Anyway as we already planned to remove that code, it should be fixed for the next release. |
I mentioned this in Discord, but thought i'd mention it here anyway. It actually didn't cause any issue with the homepage or other custom pages as they worked as intended. The issue was the nav items in the header no longer worked went to the doc articles and instead caused a 404. |
Hey, this is fixed in #3141 will be released soon, probably tomorrow |
released in https://github.com/facebook/docusaurus/releases/tag/v2.0.0-alpha.60 can you tell me if it works? |
Yes issue is now resolved. Thanks! |
Hey, I think accepting '' as a value was a bad idea that actually lead to errors later, but still think that '/' should work for your usecase. Please tell me if you think you can't use '/' instead, because '' will be rejected in alpha 63. |
🐛 Bug Report
Before v59 we were able to remove
/docs
from the URL by settingrouteBasePath: '',
whilst still being able to use pages see #2713. However, as of v59routeBasePath
can no longer be empty and adding a/
torouteBasePath
forces docs-only mode and therefore, no pages. This results in nav items to 404. :(To Reproduce
routeBasePath
to''
or'/'
Expected behavior
You should be able to remove
/docs
from the URL without having to use docs-only mode. We really wanted to update so we can use the DocSearch v3, but this is going to prevent us from doing so. :(Your Environment
Reproducible Demo
N/A
The text was updated successfully, but these errors were encountered: