mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-14 01:43:01 +00:00
Carry action across redirect
This commit is contained in:
parent
3ea7d60e00
commit
e2d6a7f425
3 changed files with 3 additions and 3 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
},
|
||||
{
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue