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