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

use User;

Then, change the code to look like this:
//start checking if its a valid page
            if($page_selector > 0) {
                if(User::isLoggedIn()) {

Type: Pre-Sale
Status: In Progress
View Replies:
Mnkras replied on at Permalink Reply
From the sitemap page in the dashboard you can select the page, then
attributes and disable the redirect.

On Thu, Nov 26, 2015, 6:49 AM concrete5 Community <
[email protected]> wrote:
jvie replied on at Permalink Reply
Oh yes, good idea! Thanks!
shahroq replied on at Permalink Reply
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?
jvie replied on at Permalink Reply
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.
Mnkras replied on at Permalink Reply
Not at the moment
shahroq replied on at Permalink Reply
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;
blinkdesign replied on at Permalink Reply
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.

concrete5 Environment Information

Concrete5 5.7

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537.36

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.