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.

eZ debug

Timing: Jan 31 2025 06:25:05
Script start
Timing: Jan 31 2025 06:25:05
Module start 'layout'
Timing: Jan 31 2025 06:25:05
Module start 'content'
Timing: Jan 31 2025 06:25:05
Module end 'content'
Timing: Jan 31 2025 06:25:05
Script end

Main resources:

Total runtime0.0184 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0081 588.1250151.2109
Module start 'layout' 0.00810.0028 739.335936.6484
Module start 'content' 0.01080.0060 775.984490.2500
Module end 'content' 0.01680.0015 866.234433.9922
Script end 0.0183  900.2266 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002613.8927140.0002
Check MTime0.00116.0870140.0001
Mysql Total
Database connection0.00157.960210.0015
Mysqli_queries0.002815.235030.0009
Looping result0.00000.076610.0000
Template Total0.00105.710.0010
Template load0.00084.382510.0008
Template processing0.00021.302010.0002
Override
Cache load0.00052.798810.0005
General
dbfile0.00158.060280.0002
String conversion0.00000.049340.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs