Bug 40814

Summary: Wrong link to original image with OPACAmazonCoverImages
Product: Koha Reporter: Caroline Cyr La Rose <caroline.cyr-la-rose>
Component: OPACAssignee: Owen Leonard <oleonard>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: dcook
Version: Main   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on: 26933    
Bug Blocks:    

Description Caroline Cyr La Rose 2025-09-15 20:54:28 UTC
When viewing a cover image in the OPAC, there is a link "See the original image". When the cover image is an Amazon cover image, the link is something like http://www.amazon/gp/reader... there is no country code (?) like .com or .ca.

I tried playing with AmazonLocale, but it doesn't change the link.

To recreate:
1. Enable OPACAmazonCoverImages
2. Make a search on the OPAC (e.g. poetry)
3. Click on the cover image
4. Hover the mouse cursor over the "see the original image" link
   --> links to www.amazon/gp/reader...

The link should have .com or a country code like .ca.

The goes back as far as 25.05.02 which is where I noticed it, but is also on main, and maybe further back to 24.11 but I'm not sure. I know it's not in 24.05 because back then clicking on the image from the results list went to the record's details page, not to the image viewing window.
Comment 1 Caroline Cyr La Rose 2025-09-15 21:04:25 UTC
Possibly caused by bug 26933