From e2d6a7f42533bcd1df6b3983056292eb264b1c01 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Sat, 3 Oct 2015 13:36:46 +0100 Subject: [PATCH] Carry action across redirect --- build/index.php | 2 +- module_index.json | 2 +- modules/page-view.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build/index.php b/build/index.php index 5cea892..5e8db71 100644 --- a/build/index.php +++ b/build/index.php @@ -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(); } } diff --git a/module_index.json b/module_index.json index 508871e..d582184 100644 --- a/module_index.json +++ b/module_index.json @@ -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 }, { diff --git a/modules/page-view.php b/modules/page-view.php index dab8ea0..03c9859 100644 --- a/modules/page-view.php +++ b/modules/page-view.php @@ -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(); } }