From 715ce3806d404c3493a0dc0ab1dd00665ab62f0b Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 13 Jul 2022 15:36:23 +0200 Subject: [PATCH] Bug 32030: Redirect to the Koha home page when "Home" is clicked from the breadcrumb Signed-off-by: Jonathan Field Signed-off-by: Martin Renvoize Signed-off-by: Kyle M Hall Signed-off-by: Tomas Cohen Arazi --- koha-tmpl/intranet-tmpl/prog/js/vue/routes.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/routes.js b/koha-tmpl/intranet-tmpl/prog/js/vue/routes.js index 7cba547cd0..9803e141a1 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/routes.js +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/routes.js @@ -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, -- 2.39.5