Bug 32030: Redirect to the Koha home page when "Home" is clicked from the breadcrumb
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 13 Jul 2022 13:36:23 +0000 (15:36 +0200)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 8 Nov 2022 12:44:13 +0000 (09:44 -0300)
Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/js/vue/routes.js

index 7cba547..9803e14 100644 (file)
@@ -116,7 +116,12 @@ function build_breadcrumb(parent_breadcrumb, current) {
 }
 
 export const routes = [
-    { path: "/cgi-bin/koha/mainpage.pl" },
+    {
+        path: "/cgi-bin/koha/mainpage.pl",
+        beforeEnter(to, from, next) {
+            window.location.href = "/cgi-bin/koha/mainpage.pl";
+        },
+    },
     {
         path: "/cgi-bin/koha/erm/erm.pl",
         component: ERMHome,