Bug 41364 - Error in preservation module breadcrumb
Summary: Error in preservation module breadcrumb
Status: Needs Signoff
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: Testopia
URL:
Keywords: rel_25_11_candidate
Depends on:
Blocks:
 
Reported: 2025-12-03 15:43 UTC by Tomás Cohen Arazi (tcohen)
Modified: 2025-12-03 15:56 UTC (History)
4 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:
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

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>