Support for <link rel="next"> and <link rel="prev"> Tags in Metadata API #75064
VijayMeena701
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Goals
Non-Goals
This issue does not aim to explore workarounds, such as manually adding tags using the Head component. The focus is on integrating this feature into the metadata system.
Background
These tags ( and ) have been a part of our old websites for a very long time, serving as an important feature for SEO and pagination. However, during the revamp of our website, we discovered that the current Next.js generateMetadata API does not provide a straightforward way to include these tags. While the others property allows adding custom meta tags, it is limited to tags and does not support tags.
Proposal
Extend the
generateMetadata
API to include a new property specifically for managing tags, similar to how the links property currently handles canonical links.Example API
Expected Output
Beta Was this translation helpful? Give feedback.
All reactions