Hi, I'm trying to set a self-referencing canonical URL on FAQ category pages. In the xfa_faq_view template the original code had:
<xf:macro id="metadata_macros::canonical_url" arg-canonicalUrl="{{ link('canonical:categories', $category) }}" />
This was pointing the canonical to /categories/ which is a 404 on my site. I tried replacing it with link('canonical:xfa_faq_view', $category) but that outputs the route name literally rather than resolving to the actual URL. What is the correct link() route name to use to point the canonical to the current FAQ category page?
Thanks
Adrian
<xf:macro id="metadata_macros::canonical_url" arg-canonicalUrl="{{ link('canonical:categories', $category) }}" />
This was pointing the canonical to /categories/ which is a 404 on my site. I tried replacing it with link('canonical:xfa_faq_view', $category) but that outputs the route name literally rather than resolving to the actual URL. What is the correct link() route name to use to point the canonical to the current FAQ category page?
Thanks
Adrian