From 696cbd84af838277d1d08e72e16c22a04d665111 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Cohen=20Arazi?= Date: Fri, 31 Oct 2025 14:45:11 -0300 Subject: [PATCH] Bug 39320: Fix ERM breadcrumb causing page reload MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: Tomás Cohen Arazi --- koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/Home.vue | 4 ++-- koha-tmpl/intranet-tmpl/prog/js/vue/routes/erm.js | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/Home.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/Home.vue index a67d22aef56..06f55ac22bd 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/Home.vue +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/Home.vue @@ -18,9 +18,9 @@ export default { markRaw(ERMLatestSUSHIJobs), markRaw(ERMCounts), markRaw(ERMLicensesNeedingAction), - ] + ]; return { - availableWidgets + availableWidgets, }; }, }; 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 d6c4507f041..36c9bb5d8f0 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.51.2