Skip to content
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

Make Nav URL customisable for home page and subpages #4232

Open
4 tasks done
air3ijai opened this issue Sep 26, 2024 · 3 comments
Open
4 tasks done

Make Nav URL customisable for home page and subpages #4232

air3ijai opened this issue Sep 26, 2024 · 3 comments

Comments

@air3ijai
Copy link

air3ijai commented Sep 26, 2024

Is your feature request related to a problem? Please describe.

We would like to have a way to easy navigate between home page and subpages.

Describe the solution you'd like

Now, when we press on Nav element it points to the home page. It would be useful to have a way to set a link to that element

  • Add nav-link to be used when you are on home page
  • Add nav-sub-link to be used when you are on subpage, and if not defined is equal to nav-link

In that way, we can easy navigate between home and subpages by press on same element. For example

export default {
  themeConfig: {
    nav: [
      { nav-link: '/markdown-examples'},
      { nav-sub-link: '/'},
      { text: 'Markdown Examples', link: '/markdown-examples' }
    ]
  }
}

Describe alternatives you've considered

No alternatives right now?

Additional context

And example about how it works now

Screen.Recording.2024-09-26.at.14.40.05.mov

Validations

@brc-dd
Copy link
Member

brc-dd commented Sep 26, 2024

  themeConfig: {
    logoLink: '/foo',
  }

@brc-dd brc-dd closed this as completed Sep 26, 2024
@air3ijai
Copy link
Author

Thanks, direct link works fine - do we have a way to set a "back-link", when we located on the subpage?

We need a way to navigate easy back.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 4, 2024
@vuejs vuejs unlocked this conversation Oct 12, 2024
@brc-dd
Copy link
Member

brc-dd commented Oct 12, 2024

Ah, currently no 👀

@brc-dd brc-dd reopened this Oct 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants