diff options
Diffstat (limited to 'application/front/controller/admin/ManageTagController.php')
-rw-r--r-- | application/front/controller/admin/ManageTagController.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/application/front/controller/admin/ManageTagController.php b/application/front/controller/admin/ManageTagController.php index e015e613..7dab288a 100644 --- a/application/front/controller/admin/ManageTagController.php +++ b/application/front/controller/admin/ManageTagController.php | |||
@@ -16,7 +16,7 @@ use Slim\Http\Response; | |||
16 | class ManageTagController extends ShaarliAdminController | 16 | class ManageTagController extends ShaarliAdminController |
17 | { | 17 | { |
18 | /** | 18 | /** |
19 | * GET /manage-tags - Displays the manage tags page | 19 | * GET /admin/tags - Displays the manage tags page |
20 | */ | 20 | */ |
21 | public function index(Request $request, Response $response): Response | 21 | public function index(Request $request, Response $response): Response |
22 | { | 22 | { |
@@ -32,7 +32,7 @@ class ManageTagController extends ShaarliAdminController | |||
32 | } | 32 | } |
33 | 33 | ||
34 | /** | 34 | /** |
35 | * POST /manage-tags - Update or delete provided tag | 35 | * POST /admin/tags - Update or delete provided tag |
36 | */ | 36 | */ |
37 | public function save(Request $request, Response $response): Response | 37 | public function save(Request $request, Response $response): Response |
38 | { | 38 | { |
@@ -46,7 +46,7 @@ class ManageTagController extends ShaarliAdminController | |||
46 | if (0 === strlen($fromTag) || false === $isDelete && 0 === strlen($toTag)) { | 46 | if (0 === strlen($fromTag) || false === $isDelete && 0 === strlen($toTag)) { |
47 | $this->saveWarningMessage(t('Invalid tags provided.')); | 47 | $this->saveWarningMessage(t('Invalid tags provided.')); |
48 | 48 | ||
49 | return $response->withRedirect('./manage-tags'); | 49 | return $this->redirect($response, '/admin/tags'); |
50 | } | 50 | } |
51 | 51 | ||
52 | // TODO: move this to bookmark service | 52 | // TODO: move this to bookmark service |
@@ -80,8 +80,8 @@ class ManageTagController extends ShaarliAdminController | |||
80 | 80 | ||
81 | $this->saveSuccessMessage($alert); | 81 | $this->saveSuccessMessage($alert); |
82 | 82 | ||
83 | $redirect = true === $isDelete ? './manage-tags' : './?searchtags='. urlencode($toTag); | 83 | $redirect = true === $isDelete ? '/admin/tags' : '/?searchtags='. urlencode($toTag); |
84 | 84 | ||
85 | return $response->withRedirect($redirect); | 85 | return $this->redirect($response, $redirect); |
86 | } | 86 | } |
87 | } | 87 | } |