Skip to content

Commit

Permalink
Fixed redirects (jsuto#88)
Browse files Browse the repository at this point in the history
Signed-off-by: Janos SUTO <sj@acts.hu>
  • Loading branch information
jsuto authored Jul 13, 2024
1 parent 1512597 commit 517f955
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion webui/controller/folder/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function index(){
if(isset($this->request->post['name']) && $this->request->post['name']) {
$this->model_folder_folder->update_folder($this->request->post);

Header("Location: folders.php");
Header('Location: ' . SITE_URL . 'folders.php');
return;
}

Expand Down
4 changes: 2 additions & 2 deletions webui/controller/folder/list.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ public function index(){
if(isset($this->request->post['name']) && $this->request->post['name']) {
$this->model_folder_folder->add_folder($this->request->post['name']);

Header("Location: folders.php");
Header('Location: ' . SITE_URL . 'folders.php');
return;
}


if(isset($this->request->get['id']) && $this->request->get['id'] > 0) {
$this->model_folder_folder->remove_folder($this->request->get['id']);

Header("Location: folders.php");
Header('Location: ' . SITE_URL . 'folders.php');
return;
}

Expand Down
2 changes: 1 addition & 1 deletion webui/controller/health/health.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function index(){
else {
if(isset($_GET['toggle_enable_purge'])) {
$this->model_health_health->toggle_option('enable_purge');
header("Location: " . HEALTH_URL);
header('Location: ' . SITE_URL . HEALTH_URL);
exit;
}

Expand Down

0 comments on commit 517f955

Please sign in to comment.