How do I stop pagelist adding a trailing slash to my urls?

Permalink
For SEO purposes I wish to create a custom template for the pagelist that generates the urls without a trailing slash.

A similar problem with autonav was kindly solved by jordanlev using rtrim.

http://www.concrete5.org/community/forums/customizing_c5/how-do-i-s...

I am now looking to do the same thing for the page list but I am failing miserably can anyone be kind enough to show me how to implement this in a similar way to the above for the page list?

Many thanks for taking a look.

 
ross111 replied on at Permalink Best Answer Reply
Answer.... (for v5.5.2.1)

copy file

SITEROOT/updates/concrete5.5.2.1/blocks/page_list/view.php) to SITEROOT/blocks/page_list/view.php, then edit the new copy of the file, and below this line:

$url = $nh->getLinkToCollection($page);
...insert a new line and put this code there:
$url = rtrim($url, '/'); //remove trailing slashes for SEO purposes