Bug 40874

Summary: mailto: Share Link on OPAC Truncates URL in Gmail Mobile App
Product: Koha Reporter: Laura Escamilla <Laura.escamilla>
Component: OPACAssignee: Owen Leonard <oleonard>
Status: ASSIGNED --- QA Contact: Testopia <testopia>
Severity: normal    
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:

Description Laura Escamilla 2025-09-25 00:56:59 UTC
When using the "Share by Email" feature on the OPAC (envelope icon), the mailto: link generates a message body that includes the bibliographic detail page URL. This works correctly on desktop email clients, but fails on mobile devices when the default mail app is Gmail.

Instead of including the full URL, the email body is truncated after opac-detail.pl, and the biblionumber query parameter is missing (e.g., the URL stops at opac-detail.pl instead of opac-detail.pl?biblionumber=123456).

This appears to be due to improper URL encoding of the mailto: body parameter, which causes mobile email apps to misinterpret query strings as part of the mailto: itself.