Which area(s) are affected? (Select all that apply)
Metadata
Which stage(s) are affected? (Select all that apply)
next dev (local), next build (local), next start (local), Other (Deployed)
Additional context
It would be helpful to have an 'other' option for link tags, similar to the 'other' option for handling meta tags. For example, having a method like this would be useful.
@huozhi It’s not exact, but to help find the issue, I’m adding more information that seems related to the content of the link I shared. Based on the comments, it seems that the query handling part is missing.
Link to the code that reproduces this issue
https://github.com/richg0ld/generate-metadata-bug
To Reproduce
In Next.js 15, I am trying to use the query string in generateMetadata's alternates.canonical and alternates.languages, but it is not being applied.
How can I ensure that querystring is not removed?
The sample code is as follows.
Current vs. Expected behavior
The expected behavior is as follows,
However, the result is as follows,
Provide environment information
Which area(s) are affected? (Select all that apply)
Metadata
Which stage(s) are affected? (Select all that apply)
next dev (local), next build (local), next start (local), Other (Deployed)
Additional context
It would be helpful to have an 'other' option for link tags, similar to the 'other' option for handling meta tags. For example, having a method like this would be useful.
having a method like this would be useful.