1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-12-22 13:45:02 +00:00

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();
}
}