question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

  1. Use a landing page.
  2. Add your nav items like this:
items: [
  {
    to: '/getting-started',
    label: 'Getting Started',
    position: 'left',
    activeBasePath: 'getting-started',
  },
  1. Set routeBasePath to '' or '/'
  2. 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:closed
  • Created 3 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
slorbercommented, Jul 28, 2020

Hey, this is fixed in https://github.com/facebook/docusaurus/pull/3141

will be released soon, probably tomorrow

1reaction
Dannyholtcommented, Jul 29, 2020

@slorber

Yes issue is now resolved. Thanks!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found