The i18nHref shortcode is a replacement for the <a/> html tag.
It checks to which request corresponds to the given href and then uses the allPermalinks helper to determine the different hrefs for all locales.
An <a/> tag is returned with the href corresponding to the locale of the page it's on.
The
i18nHref
shortcode is a replacement for the<a/>
html tag.It checks to which request corresponds to the given
href
and then uses theallPermalinks
helper to determine the different hrefs for all locales. An<a/>
tag is returned with the href corresponding to the locale of the page it's on.