I need to get URL's to the current page but alternative languages in a
<link /> tag.
<link rel="alternate" hreflang="[lang_code]" href="[url_of_page]" />
For example the master language is
en-us and I'm on
www.website.com/current-page, I'd like to add this in my
<link rel="alternate" hreflang="fr-fr" href="http://www.website.com/fr-fr/page-courante" />
I'm using Next.js and @prismicio/react v2.
I can't use
PrismicLink because it is not a link (
<a>) and I can't simply add
fr-fr in URL because UID's aren't the same. Maybe
prismicH.asLink but not sure we can give the
Do you have an idea?