From a448a9cade96c52843d99e2bbc24cab6f27fc610 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Mon, 3 Nov 2025 09:47:38 +0000 Subject: [PATCH] Bug 41173: Fix ERM breadcrumb causing page reload The main ERM route was missing a 'name' property, causing the navigation store to treat it as an external path (.pl extension). This resulted in breadcrumb links using href instead of router-link, causing unwanted page reloads. To test: 1. Navigate to ERM module 2. Go to any sub-section (Agreements, Licenses, etc.) 3. Click on 'E-resource management' in the breadcrumb => FAIL: Notice the page reloads! 4. Apply the patch 5. Repeat steps 1-3 => SUCCES: Verify the page doesn't reload and navigation works smoothly 6. Sign off :-D Signed-off-by: Tomas Cohen Arazi Signed-off-by: David Nind --- koha-tmpl/intranet-tmpl/prog/js/vue/routes/erm.js | 1 + 1 file changed, 1 insertion(+) diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/routes/erm.js b/koha-tmpl/intranet-tmpl/prog/js/vue/routes/erm.js index d6c4507f04..36c9bb5d8f 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/routes/erm.js +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/routes/erm.js @@ -23,6 +23,7 @@ import { $__ } from "@koha-vue/i18n"; export const routes = [ { path: "/cgi-bin/koha/erm/erm.pl", + name: "ERMHome", redirect: "/cgi-bin/koha/erm/home", is_default: true, is_base: true, -- 2.39.5