Bug 23337

Summary: Links without the protocol in the 856$u fail when using TrackClicks
Product: Koha Reporter: Nick Clemens (kidclamp) <nick>
Component: OPACAssignee: Owen Leonard <oleonard>
Status: RESOLVED DUPLICATE QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low    
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 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 ***