Skip to content

Navigation highlighting not working due to trailing slash behaviour #2820

Open
@stijns96

Description

@stijns96

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stalev2Relevant for @nuxt/content v2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions