Bug 40874 - mailto: Share Link on OPAC Truncates URL in Gmail Mobile App
Summary: mailto: Share Link on OPAC Truncates URL in Gmail Mobile App
Status: ASSIGNED
Alias: None
Product: Koha
Classification: Unclassified
Component: OPAC (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal
Assignee: Owen Leonard
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-09-25 00:56 UTC by Laura Escamilla
Modified: 2025-09-25 03:02 UTC (History)
1 user (show)

See Also:
GIT URL:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.