Bugzilla – Attachment 188984 Details for
Bug 41173
ERM breadcrumb link causes page reload
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 41173: Fix ERM breadcrumb causing page reload
Bug-41173-Fix-ERM-breadcrumb-causing-page-reload.patch (text/plain), 2.07 KB, created by
Pedro Amorim
on 2025-11-03 16:21:36 UTC
(
hide
)
Description:
Bug 41173: Fix ERM breadcrumb causing page reload
Filename:
MIME Type:
Creator:
Pedro Amorim
Created:
2025-11-03 16:21:36 UTC
Size:
2.07 KB
patch
obsolete
>From 5f6c844936863b91acf420cfa2d3c05c6d6df716 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >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 <tomascohen@theke.io> >--- > 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.39.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 41173
:
188983
| 188984