URLs are written twice

Author Message

Softriva .com

Wednesday 03 January 2007 12:50:15 pm

The site I am developing uses a non-western lettering so my nodes are named as node_35, node_32, etc.

The url of the node being fetched looks ok if using the following:

{foreach $Articles as $article}
{$article|attribute(show,1)}

url string 'node_59/node_64/node_76/node_113'
url_alias string 'node_59/node_64/node_76/node_113'

but it is doubled if using

{$article.url_alias}

see link below
www.xyzabc.com/node_59/node_64/node_59/node_64/node_76/node_113

if I do:

{$article.url_alias|ezurl}

I get a url as:
www.xyzabc.com/node_59/node_64/node_76/

missing node_113.

This is so weired. Is this a bug?

Nayef Abu Ebaid

Tuesday 09 January 2007 12:05:24 am

Hi,

I have the same problem, but with the English language, did you find the solution?

Nayef

Softriva .com

Tuesday 09 January 2007 1:25:09 am

Yes! just make sure to remove the quotes from href="". I mean the following is wrong:

href="{$article.url_alias|ezurl}"

The following is correct

href={$article.url_alias|ezurl}

Check your final HTML code source code. You will see that your url is like

<a href=""mylink.com"">mylink</a>

I hope this help.

Finally, Nayef, please email me at o o z y p a l [a t] g m a i l . c o m

Nayef Abu Ebaid

Tuesday 09 January 2007 3:21:20 am

Cheers OOzy Pal,

It is finally working I really appreciate it.

Thanks a lot

Nayef

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.