Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
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
Pages: 1