Can no longer remove /docs from the URL since v59
See original GitHub issue🐛 Bug Report
Before v59 we were able to remove /docs
from the URL by setting routeBasePath: '',
whilst still being able to use pages see #2713. However, as of v59 routeBasePath
can no longer be empty and adding a /
to routeBasePath
forces docs-only mode and therefore, no pages. This results in nav items to 404. 😦
To Reproduce
- Use a landing page.
- Add your nav items like this:
items: [
{
to: '/getting-started',
label: 'Getting Started',
position: 'left',
activeBasePath: 'getting-started',
},
- Set
routeBasePath
to''
or'/'
- Visit your site and all nav items except the logo will now 404.
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
- Docusaurus version used: 2.0.0-alpha.59
Reproducible Demo
N/A
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Remove Outdated Content tool - Search Console Help
Use the Remove Outdated Content tool to have Google update search results for pages or images that no longer exist, or pages that...
Read more >URL removal explained, Part III: Removing content that you ...
Content removed from the page Once you've confirmed that the content you're seeking to remove is no longer present on the page, you...
Read more >widevinecdm plugin
Not needed on most distro : Replace the "WidevineCdm" provided by Chromium with a symlink to the file from Chrome: the widevine plugin...
Read more >FFH4X Regedit APK (Latest Version) v86 Free Download
Night Mode – A user can opt for night mode to use it more comfortably. No Grass – Remove fog, trees, and grass...
Read more >How to remove a link to a file or folder - Dropbox Help Center
Removing a link immediately disables that link to your file or folder. Anyone who tries to click a disabled link will get an...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hey, this is fixed in https://github.com/facebook/docusaurus/pull/3141
will be released soon, probably tomorrow
@slorber
Yes issue is now resolved. Thanks!