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

Navigation highlighting not working due to trailing slash behaviour #2820

Open
stijns96 opened this issue Oct 21, 2024 · 1 comment
Open
Labels
v2 Relevant for @nuxt/content v2

Comments

@stijns96
Copy link
Contributor

Environment

  • Operating System: Darwin
  • Node Version: v20.10.0
  • Nuxt Version: 3.13.2
  • CLI Version: 3.14.0
  • Nitro Version: 2.9.7
  • Package Manager: [email protected]
  • Builder: -
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

Reproduction

Describe the bug

Somehow the links in the navigation do not have a trailing slash in the href, but when I refresh the page, it will automatically be appended to my url.

I tried to add nuxt seo that has a built-in feature to remove trailing slashes, but that didn't work. Also the document-driven trailing slash option is not doing anything here.

How to get rid of the trailing slash?

Additional context

No response

Logs

No response

@farnabaz
Copy link
Member

farnabaz commented Nov 7, 2024

Where did you deploy your project?
I believe this is not related to Nuxt Content but to Nuxt and your deployment. Check out nuxt/nuxt#15462

@farnabaz farnabaz added the v2 Relevant for @nuxt/content v2 label Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v2 Relevant for @nuxt/content v2
Projects
None yet
Development

No branches or pull requests

2 participants