Hello, will this work if i set up Hreflang for my site with dynamic data/slug?
< link rel=“alternate” hreflang=“pl” href=“https://wytwornia-zieleni.pl/${page->get(‘data’)->get(‘slug’)}” />
< link rel=“alternate” hreflang=“en” href=“https://wytwornia-zieleni.pl/en/${page->get(‘data’)->get(‘slug’)}” />
< link rel=“alternate” hreflang=“x-default” href=“https://wytwornia-zieleni.pl/${page->get(‘data’)->get(‘slug’)}” />
Thanks for halp
EDIT 1 it didnt work so i had to make it as a regular- and back to my question, gow can i make hreflang dynamic for my sites?(Ahrefs are showing a lot of problem according to lack of this feature)