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.

Feature tab for external link in nav item

See original GitHub issue

I set nav Home is “http://mysite.com/”, I have enable feature tab then tab Home not appear. How can I add a tab Home to the menubar?

theme: 
    name: 'material'
    feature:
        tabs: true

nav:
    - Home: "http://mysite.com/"
    - Javascript:
        - Intro: javascript/index.md

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

21reactions
gtmsinghcommented, Feb 5, 2020

Also, if this helps, you can open the link in new tab by using the following construct:

theme: 
    name: 'material'
    feature:
        tabs: true

nav:
    - Home: 
        - Intro: http://mysite.com/" target="_blank
    - Javascript:
        - Intro: javascript/index.md

Note: There are missing quotes in the external link value. It works like SQL injection where we inject this in anchor tag.

0reactions
ngtriancommented, Oct 18, 2018

I have resolved with nested based on your suggestion

theme: 
    name: 'material'
    feature:
        tabs: true

nav:
    - Home: 
        - Intro: "http://mysite.com/"
    - Javascript:
        - Intro: javascript/index.md
Read more comments on GitHub >

github_iconTop Results From Across the Web

Bootstrap tab function as an external link - Stack Overflow
Is there any way to link to an external link using bootstrap tabs? <ul class="nav nav-tabs push" data-toggle="tabs"> ...
Read more >
Navs - Bootstrap
Takes the basic nav from above and adds the .nav-tabs class to generate a tabbed interface. Use them to create tabbable regions with...
Read more >
How to open external menu links in a new tab with WordPress
How to open external menu links in a new tab with WordPress ? · Click on the Screen Options link in the top...
Read more >
Customize the navigation on your SharePoint site
Learn how to customize the Quick Link menu and other navigation on your SharePoint site.
Read more >
TABS & Linking Externally - SEO & Linkjuice
In the Browser they appear to have an external link in this form: ... I think this should become a permanent feature of...
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