-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
[v2] links: nav & footer links (href) without target="_blank" #2339
Comments
You can add the {
href: 'https://github.com/facebook/docusaurus',
label: 'GitHub',
position: 'right',
target: '_self',
}, |
Thanks, @lex111. Any way this is possible for the |
Is it really necessary for a logo? I mean, do you really want external link to open in the current tab when you click on the logo? FYI was recently allowed to add an external link to |
Got it but in my case it is expected actually and currently, it is very strange from a UX perspective. You can see what I mean here: https://devspace.sh/cli/docs/introduction To explain what happens here: I have a website hosted on netlify and I only proxy the /docs/* routes to the docusaurus page => That means the / route is not made with docusaurus. However, using a |
Hmm, aha, if you set |
Yes, exactly. I got the 404 with to:/, so I switched to using href. Having logo.target would be great. Let me know if you want a PR for this. |
🚀 Feature
Currently, I can set
href
for nav and footer links indocusaurus.config.js
for the classic-theme but they always render withtarget="_blank"
. It would be great if that could be disabled/changed, so that the link will open in the current browser tab rather than opening a new one.Have you read the [Contributing Guidelines on issues]
Yes
Motivation
I think it is such an essential thing that it should be part of the classic-theme. I mean I could eject the header and footer and just do it myself but that would disconnect me from the theme which seems a little overpowered for such a small change.
Pitch
There could be a config option next to
href
to control the target, e.g.linkTarget
with a default value of_blank
or an optiontargetBlank
with default valuetrue
.The text was updated successfully, but these errors were encountered: