| Summary: | Link from 856$u breaks with leading or trailing spaces | ||
|---|---|---|---|
| Product: | Koha | Reporter: | Andrew Fuerste-Henry <andrew> |
| Component: | Cataloging | Assignee: | Andrew Fuerste-Henry <andrew> |
| Status: | Signed Off --- | QA Contact: | Testopia <testopia> |
| Severity: | normal | ||
| Priority: | P5 - low | CC: | david, m.de.rooy |
| Version: | Main | ||
| Hardware: | All | ||
| OS: | All | ||
| 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: |
If a 856$u for a record had spaces before or after the URL, the link shown on the record page on the OPAC and staff interface (under 'Online resources') did not work.
Depending on the browser, either nothing happened, or an error was shown that the site wasn't reachable.
Examples that previously caused links not to work (without the quotes):
- " koha-community.org"
- "koha-community.org "
- " koha-community.org "
|
Version(s) released in: | |
| Circulation function: | |||
| Bug Depends on: | 41081 | ||
| Bug Blocks: | |||
| Attachments: |
Bug 41588: Normalize spaces in 856$u links
Bug 41588: Normalize spaces in 856$u links |
||
|
Description
Andrew Fuerste-Henry
2026-01-09 17:32:05 UTC
Created attachment 191217 [details] [review] Bug 41588: Normalize spaces in 856$u links To test: 1 - add 856$u " www.cheese.com" to a record 2 - confirm link does not work from results or details in either staff interface or OPAC 3 - add 856$u "www.cheese.com " to a record 4 - confirm link does not work from results or details in either staff interface or OPAC 7 - apply patch, restart_all 8 - reload pages, confirm both links work in results and details in staff interface and OPAC Optional final step: have some cheese as a treat Created attachment 191218 [details] [review] Bug 41588: Normalize spaces in 856$u links To test: 1 - add 856$u " www.cheese.com" to a record 2 - confirm link does not work from results or details in either staff interface or OPAC 3 - add 856$u "www.cheese.com " to a record 4 - confirm link does not work from results or details in either staff interface or OPAC 7 - apply patch, restart_all 8 - reload pages, confirm both links work in results and details in staff interface and OPAC Optional final step: have some cheese as a treat Signed-off-by: David Nind <david@davidnind.com> |