Bug 41364 - Error in preservation module breadcrumb
Summary: Error in preservation module breadcrumb
Status: RESOLVED FIXED
Alias: None
Product: Koha
Classification: Unclassified
Component: Preservation (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low blocker
Assignee: Tomás Cohen Arazi (tcohen)
QA Contact: Jonathan Druart
URL:
Keywords:
: 41372 (view as bug list)
Depends on:
Blocks:
 
Reported: 2025-12-03 15:43 UTC by Tomás Cohen Arazi (tcohen)
Modified: 2026-01-16 03:17 UTC (History)
8 users (show)

See Also:
GIT URL:
Initiative type: ---
Sponsorship status: ---
Comma delimited list of Sponsors:
Crowdfunding goal: 0
Patch complexity: Trivial patch
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
25.11.00,25.05.07,24.11.12
Circulation function:


Attachments
Bug 41364: Fix error in preservation module breadcrumb (2.33 KB, patch)
2025-12-03 15:56 UTC, Tomás Cohen Arazi (tcohen)
Details | Diff | Splinter Review
Bug 41364: Fix error in preservation module breadcrumb (2.36 KB, patch)
2025-12-03 16:34 UTC, Lucas Gass (lukeg)
Details | Diff | Splinter Review
Bug 41364: Fix error in preservation module breadcrumb (2.41 KB, patch)
2025-12-03 20:48 UTC, David Nind
Details | Diff | Splinter Review
Bug 41364: Fix error in preservation module breadcrumb (2.48 KB, patch)
2025-12-04 09:05 UTC, Jonathan Druart
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Tomás Cohen Arazi (tcohen) 2025-12-03 15:43:01 UTC
The breadcrumb has an empty element (where 'Processings' should show), and the browser console shows this warning:

```
[Vue Router warn]: No match found for location with path "/cgi-bin/koha/preservation/settings/processings" devtools-BLCumUwL.mjs:59:1
```

This also fails:

```shell
 $ ktd --shell
k$ run_cypress --spec t/cypress/integration/Preservation/Settings.ts
```
Comment 1 Tomás Cohen Arazi (tcohen) 2025-12-03 15:56:05 UTC
Created attachment 190122 [details] [review]
Bug 41364: Fix error in preservation module breadcrumb

This patch makes the 'Processings' breadcrum element not be tied to a component but a plain string with the link disabled. This was causing errors:

- Breadcrumb element empty
- Error in the browser console

To test:
1. Enable the Preservation module
2. Go to Home > Preservation > Settings
3. Use the 'Add a new processing' button
=> FAIL: The breadcrumb has 'Settings > > Add processing' (i.e. is missing 'Processings' between >)
4. Click on 'Edit this processing'
=> FAIL: Same error, different context
5. Check the browser console
=> FAIL: You see something like this:

```
[Vue Router warn]: No match found for location with path "/cgi-bin/koha/preservation/settings/processings" devtools-BLCumUwL.mjs:59:1
```

6. Run the cypress tests for this module:
  k$ run_cypress --spec t/cypress/integration/Preservation/Settings.ts
=> FAIL: The breadcrumb navigation is broken
7. Apply this patch
8. Rebuild things:
   $ ktd --shell
  k$ yarn build
9. Fully refresh the page (Use cmd+shift+r on macOS, ctrl+shift+r on Linux/Windows)
10. Repeat 2-6
=> SUCCESS: The breadcrumb is no longer broken
=> SUCCESS: No errors/warnings about this in the browser console
=> SUCCESS: Tests pass!
11. Sign off :-D

Signed-off-by: Tomás Cohen Arazi <tomascohen@theke.io>
Comment 2 Lucas Gass (lukeg) 2025-12-03 16:34:25 UTC
Created attachment 190124 [details] [review]
Bug 41364: Fix error in preservation module breadcrumb

This patch makes the 'Processings' breadcrum element not be tied to a component but a plain string with the link disabled. This was causing errors:

- Breadcrumb element empty
- Error in the browser console

To test:
1. Enable the Preservation module
2. Go to Home > Preservation > Settings
3. Use the 'Add a new processing' button
=> FAIL: The breadcrumb has 'Settings > > Add processing' (i.e. is missing 'Processings' between >)
4. Click on 'Edit this processing'
=> FAIL: Same error, different context
5. Check the browser console
=> FAIL: You see something like this:

```
[Vue Router warn]: No match found for location with path "/cgi-bin/koha/preservation/settings/processings" devtools-BLCumUwL.mjs:59:1
```

6. Run the cypress tests for this module:
  k$ run_cypress --spec t/cypress/integration/Preservation/Settings.ts
=> FAIL: The breadcrumb navigation is broken
7. Apply this patch
8. Rebuild things:
   $ ktd --shell
  k$ yarn build
9. Fully refresh the page (Use cmd+shift+r on macOS, ctrl+shift+r on Linux/Windows)
10. Repeat 2-6
=> SUCCESS: The breadcrumb is no longer broken
=> SUCCESS: No errors/warnings about this in the browser console
=> SUCCESS: Tests pass!
11. Sign off :-D

Signed-off-by: Tomás Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Comment 3 David Nind 2025-12-03 20:48:28 UTC
Created attachment 190132 [details] [review]
Bug 41364: Fix error in preservation module breadcrumb

This patch makes the 'Processings' breadcrum element not be tied to a component but a plain string with the link disabled. This was causing errors:

- Breadcrumb element empty
- Error in the browser console

To test:
1. Enable the Preservation module
2. Go to Home > Preservation > Settings
3. Use the 'Add a new processing' button
=> FAIL: The breadcrumb has 'Settings > > Add processing' (i.e. is missing 'Processings' between >)
4. Click on 'Edit this processing'
=> FAIL: Same error, different context
5. Check the browser console
=> FAIL: You see something like this:

```
[Vue Router warn]: No match found for location with path "/cgi-bin/koha/preservation/settings/processings" devtools-BLCumUwL.mjs:59:1
```

6. Run the cypress tests for this module:
  k$ run_cypress --spec t/cypress/integration/Preservation/Settings.ts
=> FAIL: The breadcrumb navigation is broken
7. Apply this patch
8. Rebuild things:
   $ ktd --shell
  k$ yarn build
9. Fully refresh the page (Use cmd+shift+r on macOS, ctrl+shift+r on Linux/Windows)
10. Repeat 2-6
=> SUCCESS: The breadcrumb is no longer broken
=> SUCCESS: No errors/warnings about this in the browser console
=> SUCCESS: Tests pass!
11. Sign off :-D

Signed-off-by: Tomás Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: David Nind <david@davidnind.com>
Comment 4 David Nind 2025-12-03 20:51:31 UTC
Added my sign-off in case it helps.
Comment 5 Lucas Gass (lukeg) 2025-12-03 21:24:04 UTC
(In reply to David Nind from comment #4)
> Added my sign-off in case it helps.

It helps. :)
Comment 6 Jonathan Druart 2025-12-04 09:05:00 UTC
*** Bug 41372 has been marked as a duplicate of this bug. ***
Comment 7 Jonathan Druart 2025-12-04 09:05:18 UTC
Created attachment 190147 [details] [review]
Bug 41364: Fix error in preservation module breadcrumb

This patch makes the 'Processings' breadcrum element not be tied to a component but a plain string with the link disabled. This was causing errors:

- Breadcrumb element empty
- Error in the browser console

To test:
1. Enable the Preservation module
2. Go to Home > Preservation > Settings
3. Use the 'Add a new processing' button
=> FAIL: The breadcrumb has 'Settings > > Add processing' (i.e. is missing 'Processings' between >)
4. Click on 'Edit this processing'
=> FAIL: Same error, different context
5. Check the browser console
=> FAIL: You see something like this:

```
[Vue Router warn]: No match found for location with path "/cgi-bin/koha/preservation/settings/processings" devtools-BLCumUwL.mjs:59:1
```

6. Run the cypress tests for this module:
  k$ run_cypress --spec t/cypress/integration/Preservation/Settings.ts
=> FAIL: The breadcrumb navigation is broken
7. Apply this patch
8. Rebuild things:
   $ ktd --shell
  k$ yarn build
9. Fully refresh the page (Use cmd+shift+r on macOS, ctrl+shift+r on Linux/Windows)
10. Repeat 2-6
=> SUCCESS: The breadcrumb is no longer broken
=> SUCCESS: No errors/warnings about this in the browser console
=> SUCCESS: Tests pass!
11. Sign off :-D

Signed-off-by: Tomás Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Comment 8 Lucas Gass (lukeg) 2025-12-04 14:35:56 UTC
Pushed to main for 25.11.00.
Comment 9 Laura Escamilla 2026-01-05 15:56:47 UTC
This change has been backported to the 25.05.x branch. Thank you!
Comment 10 Fridolin Somers 2026-01-09 08:27:31 UTC
Pushed to 24.11.x for 24.11.12
Comment 11 Wainui Witika-Park 2026-01-16 01:35:39 UTC
Not backporting to 22.11
Comment 12 David Nind 2026-01-16 03:17:14 UTC
Bug fix, no changes required to the manual.