Bug 32030: Redirect to the Koha home page when "Home" is clicked from the breadcrumb

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>
This commit is contained in:
Jonathan Druart 2022-07-13 15:36:23 +02:00 committed by Tomas Cohen Arazi
parent 8452dcc929
commit 715ce3806d
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View 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,