Cannot edit page that has redirect set
Permalink Browser Info Environment
Thanks for the module, works well. Even too well actually ;)
I get redirected away from the page even if want to edit it. This makes it impossible to actually publish the page or disable the redirect.
I fixed it by checking if the user is logged in in packages/page_redirect/controller.php :
On top, you need
Then, change the code to look like this:
I get redirected away from the page even if want to edit it. This makes it impossible to actually publish the page or disable the redirect.
I fixed it by checking if the user is logged in in packages/page_redirect/controller.php :
On top, you need
use User;
Then, change the code to look like this:
//start checking if its a valid page if($page_selector > 0) { if(User::isLoggedIn()) { return; } }
Type: | Pre-Sale |
---|---|
Status: | In Progress |
Oh yes, good idea! Thanks!
Hi Michael,
Is there another way to tell the add-on not to redirect in some cases? Maybe by sending a variable via the querystring?
Cheers,
Is there another way to tell the add-on not to redirect in some cases? Maybe by sending a variable via the querystring?
Cheers,
Hi,
I am having this issue on a page with redirect.
Changing the atteibute via sitemap cannot be published, only saved. I cannot access the page to publish it. Is there any solution to this besides changing the code?
Thanks
I am having this issue on a page with redirect.
Changing the atteibute via sitemap cannot be published, only saved. I cannot access the page to publish it. Is there any solution to this besides changing the code?
Thanks
Most page attributes are accessible through the sitemap, even though the way to it is different. Publishing a change is a whole lot different, for example.
Unfortunately, there seems to be no way to change the URL slug through the sitemap.
I think I will revert to using the workaround above as I also find it easier to use the familiar interface to edit the page.
Unfortunately, there seems to be no way to change the URL slug through the sitemap.
I think I will revert to using the workaround above as I also find it easier to use the familiar interface to edit the page.
Not at the moment
I ended up with this piece appended at the beginning of on_start() method, in case either you intended to consider it for the next version or anyone needed it:
$redirect = $_GET['redirect'] ?: ''; if ($redirect == 'halt') return;
Thanks for publishing this snippet. It worked fine with Chrome and Firefox, but not with Safari.
I changed "301 Moved Permanently" to "302 Moved Temporarily" as Fabian Bitter suggests in his review to this Addon, and it works great.
I changed "301 Moved Permanently" to "302 Moved Temporarily" as Fabian Bitter suggests in his review to this Addon, and it works great.
attributes and disable the redirect.
On Thu, Nov 26, 2015, 6:49 AM concrete5 Community <
discussions@concretecms.com> wrote: