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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Target blank in header link of siteconfig.js #2721
Comments
I don't think it's a bug. If anything, it's probably a feature request. Based on the docs, I don't think it's currently possible to set a header link to open in a new tab. |
Hi @amimas , |
This is already possible in v2, but I am not sure if it will be added in v1. |
Hi @lex111, |
Pull requests welcome. |
@yangshun Is this solved already? |
Hey, this exists in v1 since 2017, just wasn't documented 馃お
=> #3011 |
馃悰 Bug Report
How to add support for
target='_blank'
in headerlink of siteconfig.js fileHave you read the Contributing Guidelines on issues?
Yes
To Reproduce
Tried to have external link in header segment
{href: 'https://github.com', label: 'Github', target: '_blank'}
Expected behavior
It should be redirect the user to that particular site, once they click the link
Actual Behavior
After rendering it is displayed below mentioned screenshot
Your Environment
Docusaurus version used: ^1.14.4
Environment name and version (e.g. Chrome 78.0.3904.108, Node.js 10.17.0): Version 81.0.4044.129 (Official Build) (64-bit)
Operating system and version (desktop or mobile): macOS mojave (Version 10.14.6)
Reproducible Demo
https://gist.github.com/sriramgroot/093b67699a57bdff0308857e9fbfc11e
The text was updated successfully, but these errors were encountered: