WARNING: concrete5 5.6 and earlier are end-of-life. Sales from the marketplace have now ended. Click here to learn more about this transition.
Adds page attribute: 'Page Auto Redirect', that redirects current page automatically based on selected option.
Options for redirection:
*If no child page exists no redirect happens.
* add-on & icon based on Page Redirect add-on by Mnkras
Working with redirected pages
When trying to add pages under the parent page, with a redirect applied, it will always add the page under the page targeted by the redirect.
For now, the only way around this is to add pages through the sitemap.
SPECIAL NOTE FOR PRETTY URLs
Prior to Page Auto Redirect 2.0 which solves this issue (thanks Yogi), when redirecting to the first child of a parent page using the Page Auto redirect plugin, the urls contains index.php (pretty urls are activated).
So you get one page with two different urls (one containing the 'index.php' and one does not ).
A simple solution to this, is to add the following code to config/site.php
define("URL_REWRITING_ALL", true);
*thank you Sambody for posting this in the forums.
*this issue has been resolved in version 2.0