Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Strange parse of <txp:site_url /> by txp - outputs invalid urls
The code of article:
<txp:site_url />
<a href="<txp:site_url />">Home</a>
And this is provided to user:
http://school1118.ru/<br />
<a href="http://school1118.ru/“>Home</a>
What can be wrong? Any additional information required?
P.S. Tried this on two separate sites – the same bug.
Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?
Offline
Re: Strange parse of <txp:site_url /> by txp - outputs invalid urls
Is this in an article body?
If so then it might be affected by Textile. Try leaving a blank space at the beginning of each line to turn Textile off.
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
Re: Strange parse of <txp:site_url /> by txp - outputs invalid urls
URL looks fine – isn’t it supposed to be http://school1118.ru/? If you’re talking about the smart quotes in the href attribute, then it’s Textile getting in the way. You can disable Textile as Stuart suggested, or for longer blocks, you can use notextile..
Offline
Re: Strange parse of <txp:site_url /> by txp - outputs invalid urls
Decided to use this universla code – <a href="/">Home</a> :)
Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?
Offline
#5 2007-11-26 19:07:05
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Strange parse of <txp:site_url /> by txp - outputs invalid urls
Also: <txp:link_to_home>Home</txp:link_to_home>. But the html code is shorter :)
Offline
Re: Strange parse of <txp:site_url /> by txp - outputs invalid urls
Els wrote:
Also:
<txp:link_to_home>Home</txp:link_to_home>. But the html code is shorter :)
You are right – and html code is indepent from site to :)
Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?
Offline