[Koha-bugs] [Bug 16031] sitemap.pl shouldn't append protocol to OPACBaseURL
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Mar 9 19:48:15 CET 2016
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16031
--- Comment #1 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 48893
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=48893&action=edit
Bug 16031: sitemap.pl shouldn't append protocol to OPACBaseURL
Since bug 5010 was pushed, OPACBaseURL already contains the protocol. The
sitemap.pl script was written before this was pushed, and thus still
concatenates
http:// in front of OPACBaseURL.
This patch removes this behaviour.
To test:
- Have OPACBaseURL set to (say) http://myopac.com
- Run the sitemap.pl script without specifying the --url param
=> FAIL: Notice URLs look like http://http://myopac.com/bib... in the sitemap
files.
- Apply the patch
- Run the sitemap.pl script without specifying the --url param
=> SUCCESS: Notice URLs look correctly like http://myopac.com/bib...
- Sign off :-D
Regards
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list