Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2024-11-11 17:51:24

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

Facebook urls

For those of you who receive visitors to your site via facebook or instagram, and despise how your sites’ urls are augmented by their tracking codes, or even worse, your pages are linked by other sites using facebook tracking urls, here is a snippet I experimentally added in the <head> of individual articles that may solve this problem.

<txp:if_individual_article>
<txp:evaluate query='contains("<txp:page_url type="req" />" != "?fbclid="'>
<txp:php>header("Refresh:0; url=<txp:permlink />"); </txp:php>
</txp:evaluate>
</txp:if_individual_article>

Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

Board footer

Powered by FluxBB