Forums / Developer / Simple but hard to figure it out!
Jorge estévez
Friday 03 April 2009 5:01:41 am
Hi to all,
I have added in my pagelayout:
<a href="www.sosabravo.com/index.php/eng" target="_self">English</a>
If I look at the source code of the page this appears:
But when I put the mouse over the link this is the result of the url:
http://www.sosabravo.com/index.php/www.sosabravo.com/index.php/eng
And of course the link goes where it should not, Just cannot figure out what's happening!
thanks
Check it out at www.sosabravo.com
Diseño Web Cuba Web Design Cuba www.elfosdesign.com
André R.
Friday 03 April 2009 5:53:38 am
You forgot "http://", you always need that on absolute ulrs in html.
http://htmlgoodies.com/primers/html/http://w3schools.com/html/default.asp
eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription @: http://twitter.com/andrerom
Andreas Kaiser
Friday 03 April 2009 10:26:19 am
Sure you know, but in these cases I think a good option is to use "|ezurl" filter (for example if you remove index.php or change domain the template code is still valid):
<a href={"eng"|ezurl()} >English</a>
eZ Partner in Madrid (Spain) Web: http://www.atela.net/