-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
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
Unable to avoid prepending of the baseUrl in NavBar items #8006
Comments
The default sidebar item link is legacy and quite messy. I'd like to refactor it and make things clearer but it's not easy without changing the behavior and doing breaking changes. In the meantime, I think you should be able to achieve what you want with Related to #7949 I guess we can keep this issue open, and probably remove |
I don't think the property |
No it's not documented. All things regarding linking are a bit messy, a mix of new features and legacy things I'd like to get rid of. We'll document everything once the cleanup/breaking changes are done |
Finally found this. I was wondering why it didn't work. BTW, what's the point of using |
The |
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clear
oryarn clear
command.rm -rf node_modules yarn.lock package-lock.json
and re-installing packages.Description
Using the
prependBaseUrlToHref
property on NavBar items orpathname:///
insidehref
property directly doesn't prevent the prepending of the project'sbaseUrl
value in the final link.Reproducible demo
https://stackblitz.com/edit/github-tvsjbv?file=docusaurus.config.js
Steps to reproduce
baseUrl
in the docusaurus config file other than/
(example :/base/
)/
, intro.md slug:/
, removesrc/pages
folder)<yourdomain>/base
to get the docs intro page.href
value of links inside the NavBar.Expected behavior
The navbar item links shouldn't have the
baseUrl
prepended on thehref
Actual behavior
The navbar item links do have the
baseUrl
prepended on thehref
Your environment
Self-service
The text was updated successfully, but these errors were encountered: