From f4b7d94dd44f682d000624efd21b5bfa154fabe1 Mon Sep 17 00:00:00 2001
From: Demian Katz <demian.katz@villanova.edu>
Date: Thu, 23 Jun 2016 15:31:00 -0400
Subject: [PATCH] Improved tag routing. - All searches now go to
 Search/Results; all tag views go to Tag/Home; search handler name is
 consistent between both places.

---
 module/VuFind/src/VuFind/Search/Tags/Options.php | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/module/VuFind/src/VuFind/Search/Tags/Options.php b/module/VuFind/src/VuFind/Search/Tags/Options.php
index 10834f068d4..5d055078e8d 100644
--- a/module/VuFind/src/VuFind/Search/Tags/Options.php
+++ b/module/VuFind/src/VuFind/Search/Tags/Options.php
@@ -46,7 +46,8 @@ class Options extends \VuFind\Search\Base\Options
     public function __construct(\VuFind\Config\PluginManager $configLoader)
     {
         parent::__construct($configLoader);
-        $this->basicHandlers = ['tags' => 'Tag'];
+        $this->basicHandlers = ['tag' => 'Tag'];
+        $this->defaultHandler = 'tag';
         $this->defaultSort = 'title';
         $this->sortOptions = [
             'title' => 'sort_title', 'author' => 'sort_author',
@@ -61,7 +62,7 @@ class Options extends \VuFind\Search\Base\Options
      */
     public function getSearchAction()
     {
-        return 'tag-home';
+        return 'search-results';
     }
 
     /**
-- 
GitLab