Bug 23337 - Links without the protocol in the 856$u fail when using TrackClicks
Summary: Links without the protocol in the 856$u fail when using TrackClicks
Status: RESOLVED DUPLICATE of bug 6892
Alias: None
Product: Koha
Classification: Unclassified
Component: OPAC (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal (vote)
Assignee: Owen Leonard
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-18 11:15 UTC by Nick Clemens (kidclamp)
Modified: 2020-03-30 21:44 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Clemens (kidclamp) 2019-07-18 11:15:55 UTC
GetMarcUrls returns full URIs with the protocol included, however, 856 allows for values with protocol specified by indicators or in another field

This causes the links not to match and redirection is bocked by tracklinks.pl which checks for equality

To recreate:
1 - Set TrackClicks to 'Track anonymously'
2 - Edit a record
3 - Edit 856: 
      Set first indicator: 4
      Set $u: www.google.com
4 - Set a second 856
      Set first indicator: 1
      Set $u: speedtest.tele2.net
5 - Open record in opac
6 - Both links lead to 404
Comment 1 Katrin Fischer 2020-03-30 21:44:10 UTC

*** This bug has been marked as a duplicate of bug 6892 ***