]> 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)
committerVictor Grousset/tuxayo <victor@tuxayo.net>
Wed, 16 Dec 2020 14:30:05 +0000 (15:30 +0100)
commit836aed20f414164f31a0e2ae0551817a319d8dda
tree4ac368d79b383c78acd44cb3dc0b2c8775cf6d6d
parent7c6e665b1c3b002b0a446ef2d4eb384092631f6b
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>
(cherry picked from commit 181125242c33d439fb6bdbddccb6a86a03fa8c15)

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
(cherry picked from commit c7f66d7d14cea365e73ac5fcb2cf80e3b9f823fc)
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
debian/templates/apache-shared-intranet.conf
debian/templates/apache-shared-opac.conf