Skip to content

docs: An error occurs when accessing a documentation page using a URL with a trailing slash. #3602

Closed

Description

@odanado

Environment

  • Operating System: Darwin
  • Chrome: 126.0.6478.127
  • Safari: 17.5

Reproduction

Access https://i18n.nuxtjs.org/docs/guide/ in your browser.

Describe the bug

After briefly displaying the normal content, a 404 page is shown.

Image

Additional context

This URL appears when searching for "nuxt3 i18n strategy" on Google.

Image

Removing the trailing slash displays the page correctly.

Logs

Activity

  1. BobbieGoede commented on May 15, 2025

    @BobbieGoede
    Member

    Thank you for reporting!

    Previously we had the opposite issue, every page got redirected to the same path with trailing slash, and refreshing would show a 404 error. Both of these issues are due to deployment configuration in Netlify, which tried to normalize the paths.

    I'll see if I can redirect trailing slashes to the same path without a trailing slash using a Nitro middleware, it is unfortunate that the paths with trailing slashes are indexed by Google 🤔

  2. BobbieGoede commented on May 15, 2025

    @BobbieGoede
    Member

    This should be resolved now 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions