Bug 41173

Summary: ERM breadcrumb link causes page reload
Product: Koha Reporter: Pedro Amorim <pedro.amorim>
Component: ERMAssignee: Tomás Cohen Arazi (tcohen) <tomascohen>
Status: Patch doesn't apply --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: jonathan.druart, jonathan.field, martin.renvoize, matt.blenkinsop, pedro.amorim, tomascohen
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39320
GIT URL: Initiative type: ---
Sponsorship status: --- Comma delimited list of Sponsors:
Crowdfunding goal: 0 Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: Bug 41173: Fix ERM breadcrumb causing page reload
Bug 41173: Fix ERM breadcrumb causing page reload

Description Pedro Amorim 2025-11-03 16:20:26 UTC

    
Comment 1 Pedro Amorim 2025-11-03 16:21:13 UTC Comment hidden (obsolete)
Comment 2 Pedro Amorim 2025-11-03 16:21:36 UTC
Created attachment 188984 [details] [review]
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>