]> git.koha-community.org Git - koha.git/commit
Bug 25548: Remove Apache rewrite directives that trigger redirects
authorDavid Cook <dcook@prosentient.com.au>
Wed, 20 May 2020 05:08:05 +0000 (15:08 +1000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 20 Nov 2020 13:23:52 +0000 (14:23 +0100)
commit181125242c33d439fb6bdbddccb6a86a03fa8c15
tree556cf77f30cf335cbb0a547895deee623a006242
parent36a6ce301f961b0cefdca70ed9a903a1216e071f
Bug 25548: Remove Apache rewrite directives that trigger redirects

Historically, we have used Apache rewrite directives to strip
query parameters with no arguments from the query
string (e.g. PARAM=&), and then redirect to the new URL.

However, this slows down user activity, and depending on your
HTTPS and proxy setup can cause suboptimal HTTP downgrades and
upgrades.

Test Plan:
0) Apply patch
1) Build Debian package
2) Install Debian package and reload Apache
3) Open developer tools on your favourite browser
4) Go to Network tab in developer tools
5) Go to /cgi-bin/koha/opac-main.pl
6) Search for "test"
7) Note a 200 status for "opac-search.pl?idx=&q=test"

If you got a 302 status for "opac-search.pl?idx=&q=test"
followed by a 200 status for "opac-search.pl?q=test", you
will know that your Apache configuration wasn't updated.

Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
debian/templates/apache-shared-intranet.conf
debian/templates/apache-shared-opac.conf