-
-
Notifications
You must be signed in to change notification settings - Fork 95
Description
Description
We have a site that uses Ether SEO and the full-page caching Blitz plugin.
When Bltz is generating the cache it adds a token parameter to the URL which is being saved to the og:url and twitter:url meta tags within the SEO meta template because they use {{ craft.app.request.absoluteUrl }}. Based on this discussion on the Blitz repo and the warning provided in the Craft 4 class reference docs for this method it seems this isn't recommended.
The result of having the ?token=... parameter cached to those SEO tags is that the canonical URL that Facebook and Twitter/X are using is incorrect and results in no preview data (title, image description etc) being pulled through.
Is there an alternative to {{ craft.app.request.absoluteUrl }} that can be used?
Thanks
Additional info
- Craft version: Pro 4.4.17
- SEO version: 4.1.2
- PHP version: 8.2.8
- Database driver & version: MySQL 8.0.34
- Other Plugins: Blitz 4.5.1