SEO-friendly URLs + "back to list page"

3 posts by 2 authors in: Forums > CMS Builder
Last Post: December 27, 2008   (RSS)

I'm hoping someone here has an answer for me. I am using the SEO Urls" list viewer option: useSeoUrls' => true

The URL to the detail is encoded correctly. My issue is with the "back to list" page link shown on the detail page, in which the list viewer link results in an incorrect URL. Without the 'SEO URLs' viewer option, the link is correct.
The URL I have encoded in the HTML is:
<a href="<?php echo $newsMetaData['_listPage']; ?>">&lt;&lt; Back to list page</a>
With 'SEO URLs' enabled, the path back to the list viewer page appears to have an appended forward slash "/", which then results in an incorrect URL back to the viewer page.
This results in the following (incorrect) link:
[url "http://www.domain.com/news-detail.php/news.php"]http://www.domain.com/news-detail.php/news.php[/#0000ff][/url]
Instead of (correct) link:
[url "http://www.domain.com/news.php"]http://www.domain.com/news.php[/#0000ff][/url]

Is there something that I can modify to make this work? I know I can hard-code a link back to the main news page, but I'll be setting up archive links, so I'd prefer to have the site visitor return to the last page visited, instead of the default news page.

Thanks for any help that can be provided!

Re: [Dave] SEO-friendly URLs + "back to list page"

Dave,

You were right. Adding the '/' in the Section Editor viewer URL in the admin corrected the link-back.

Thanks so much!