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

Next 13, canonical and next-intl #498

Closed
RobSchilderr opened this issue Sep 4, 2023 · 1 comment
Closed

Next 13, canonical and next-intl #498

RobSchilderr opened this issue Sep 4, 2023 · 1 comment
Labels
bug Something isn't working unconfirmed Needs triage.

Comments

@RobSchilderr
Copy link

RobSchilderr commented Sep 4, 2023

Description

When adding the alternates at a specific page in the app router:

alternates: {
    canonical: 'https://domain.app/privacy',
    languages: {
      'en-US': '/en-US',
      'pl-PL': '/pl-PL',
      'tr-TR': '/tr-TR',
    },
  }

It always adds the language at the end, like: htps://domain.app/privacy/en-US, while next-intl work with https://domain.app/en-US/privacy.

How do we use the canonical in situations like this?

Mandatory reproduction URL (CodeSandbox or GitHub repository)

none

Reproduction description

Steps to reproduce:

  1. Open reproduction
  2. Click on …
  3. See error: …

Expected behaviour

Not sure whether this is a Next.js issue or Next-intl should change its behavior.

@RobSchilderr RobSchilderr added bug Something isn't working unconfirmed Needs triage. labels Sep 4, 2023
@Felipeex
Copy link

Here is duplicated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working unconfirmed Needs triage.
Projects
None yet
Development

No branches or pull requests

2 participants