[Koha-bugs] [Bug 27009] Use 301 to redirect from tracklinks.pl
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Sun Nov 15 19:31:40 CET 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27009
David Nind <david at davidnind.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #113588|0 |1
is obsolete| |
--- Comment #2 from David Nind <david at davidnind.com> ---
Created attachment 113647
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113647&action=edit
Bug 27009 - Use 301 to redirect from tracklinks.pl
The default for the tracklinks.pl redirect is "302 Moved Temporarily".
It makes more sense to use "301 Moved Permanently".
To test:
1. Set TrackClicks = Track
2. Make sure you have a MARC record with an external link in 856$u
3. In the OPAC, click on the link and use e.g. Developer tools to
check on the HTTP status code sent by tracklinks.pl. It will
be 302.
4. Apply this patch and restart all the things
5. Click on the external link in the OPAC again. The status code
should now be 301.
Signed-off-by: David Nind <david at davidnind.com>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list