nuxt / content

The file-based CMS for your Nuxt application, powered by Markdown and Vue components.
https://content.nuxt.com
MIT License
3.13k stars 627 forks source link

Navigation highlighting not working due to trailing slash behaviour #2820

Open stijns96 opened 3 weeks ago

stijns96 commented 3 weeks ago

Environment

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 commented 1 week ago

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