Carry action across redirect

This commit is contained in:
Starbeamrainbowlabs 2015-10-03 13:36:46 +01:00
parent 3ea7d60e00
commit e2d6a7f425
3 changed files with 3 additions and 3 deletions

View File

@ -1802,7 +1802,7 @@ register_module([
{
// Todo send an explanatory page along with the redirect
http_response_code(307);
header("location: ?action=view&page=" . $pageindex->$page->redirect_target . "&redirected_from=$env->page");
header("location: ?action=$env->action&page=" . $pageindex->$page->redirect_target . "&redirected_from=$env->page");
exit();
}
}

View File

@ -140,7 +140,7 @@
"author": "Starbeamrainbowlabs",
"description": "Allows you to view pages. You reallyshould include this one.",
"id": "page-view",
"lastupdate": 1443875677,
"lastupdate": 1443875776,
"optional": false
},
{

View File

@ -41,7 +41,7 @@ register_module([
{
// Todo send an explanatory page along with the redirect
http_response_code(307);
header("location: ?action=view&page=" . $pageindex->$page->redirect_target . "&redirected_from=$env->page");
header("location: ?action=$env->action&page=" . $pageindex->$page->redirect_target . "&redirected_from=$env->page");
exit();
}
}