mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-10 12:33:00 +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
|
// Todo send an explanatory page along with the redirect
|
||||||
http_response_code(307);
|
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();
|
exit();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -140,7 +140,7 @@
|
||||||
"author": "Starbeamrainbowlabs",
|
"author": "Starbeamrainbowlabs",
|
||||||
"description": "Allows you to view pages. You reallyshould include this one.",
|
"description": "Allows you to view pages. You reallyshould include this one.",
|
||||||
"id": "page-view",
|
"id": "page-view",
|
||||||
"lastupdate": 1443875677,
|
"lastupdate": 1443875776,
|
||||||
"optional": false
|
"optional": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -41,7 +41,7 @@ register_module([
|
||||||
{
|
{
|
||||||
// Todo send an explanatory page along with the redirect
|
// Todo send an explanatory page along with the redirect
|
||||||
http_response_code(307);
|
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();
|
exit();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue