aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/front/controller/visitor/PublicSessionFilterController.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/front/controller/visitor/PublicSessionFilterController.php')
-rw-r--r--application/front/controller/visitor/PublicSessionFilterController.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/application/front/controller/visitor/PublicSessionFilterController.php b/application/front/controller/visitor/PublicSessionFilterController.php
index 35da0c5f..1a66362d 100644
--- a/application/front/controller/visitor/PublicSessionFilterController.php
+++ b/application/front/controller/visitor/PublicSessionFilterController.php
@@ -30,4 +30,17 @@ class PublicSessionFilterController extends ShaarliVisitorController
30 30
31 return $this->redirectFromReferer($request, $response, ['linksperpage'], ['nb']); 31 return $this->redirectFromReferer($request, $response, ['linksperpage'], ['nb']);
32 } 32 }
33
34 /**
35 * GET /untagged-only: allows to display only bookmarks without any tag
36 */
37 public function untaggedOnly(Request $request, Response $response): Response
38 {
39 $this->container->sessionManager->setSessionParameter(
40 SessionManager::KEY_UNTAGGED_ONLY,
41 empty($this->container->sessionManager->getSessionParameter(SessionManager::KEY_UNTAGGED_ONLY))
42 );
43
44 return $this->redirectFromReferer($request, $response, ['untaggedonly', 'untagged-only']);
45 }
33} 46}