What's new
Xen Factory

Register today to become a member! Once signed in, you'll be able to start purchasing our products, ask questions, request support and suggest new ideas!

xfa_faq_view template - correct link() route name for canonical URL

HTT

New Member
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
 

From bespoke add-on development to complex integrations and specialized enhancements, we offer a range of XenForo development services designed to help your community thrive.

Start discussing your needs
Back
Top
Cart