Hi,
I've been using below code to make a section redirect directly to the first page in page-view, thus skipping the list-view:
This works great except for when I turn on PrettyUrls. When PrettyUrls is switched on the page gives a "Too many redirects" error. It seems that even though the page is a 'page' (?p=x) its still being seen as 'k_is_list' so it enters a loop.
Maybe I'm using the wrong approach?
I've been using below code to make a section redirect directly to the first page in page-view, thus skipping the list-view:
- Code: Select all
<cms:if k_is_list > <cms:pages order='asc' limit='1'> <cms:redirect url=k_page_link /> </cms:pages> </cms:if>
This works great except for when I turn on PrettyUrls. When PrettyUrls is switched on the page gives a "Too many redirects" error. It seems that even though the page is a 'page' (?p=x) its still being seen as 'k_is_list' so it enters a loop.
Maybe I'm using the wrong approach?