| Summary: | tracklinks.pl doesn't work with URLs containing ampersands | ||
|---|---|---|---|
| Product: | Koha | Reporter: | Alex Buckley <alexbuckley> |
| Component: | OPAC | Assignee: | Owen Leonard <oleonard> |
| Status: | CLOSED INVALID | QA Contact: | Testopia <testopia> |
| Severity: | enhancement | ||
| Priority: | P5 - low | ||
| 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: | Version(s) released in: | ||
| Circulation function: | |||
Turned out to be an issue with the URL encoding in the XSLT |
When the $uri variable is set from accessing the cgi->param('uri') value retrieved from the URL in tracklinks.pl if the uri to be redirected to contains a ampersand the ampersand and any content after it is ignored and not assigned to the $uri value. This is because when values are passed via the URL the ampersand is the delimiter between the variables and so any values after the ampersand are not considered to belong to uri. This results in a 404 error being displayed when track clicks is enabled and the URL in the biblio's 856$u contains an ampersand.