Next.js Discord

Discord Forum

How can I use meta canonical url (next 14) in case of static page

Unanswered
Transvaal lion posted this in #help-forum
Open in Discord
Transvaal lionOP
I set up meta in layout file:
alternates: {
    canonical: '/',
  },

But now every page has root as a canonical. I would like to have current location instead of root.
If i entered domain.com/root I'm expecting to see this url as meta canonical. Any ideas?

0 Replies