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>
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Tomas Cohen Arazi 2025-11-03 09:47:38 +00:00 committed by Lucas Gass
parent ead9dd4cac
commit 7a614e4c67
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
1 changed files with 1 additions and 0 deletions

View File

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