Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2025-09-29 19:41:52

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,502
Bitbucket GitHub

<txp:site_url /> in a link URL

Is there a way I can include <txp:site_url escape="html" /> in a link URL? This feels like it involves some escape magic in the link_url, but I can’t quite get there. Any and all guidance very welcomed.

Offline

#2 2025-09-29 19:47:47

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 5,031
Website GitHub

Re: <txp:site_url /> in a link URL

Do you mean if you want to use it in an url variable? Maybe escape="url"? See the available escape values in the docs.


TXP Builders – finely-crafted code, design and txp

Offline

#3 2025-09-29 19:53:09

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,502
Bitbucket GitHub

Re: <txp:site_url /> in a link URL

That looks promising – thank you, jakob.

Offline

Board footer

Powered by FluxBB