]> 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)
committerAndrew Fuerste-Henry <andrew@bywatersolutions.com>
Thu, 10 Dec 2020 22:07:13 +0000 (22:07 +0000)
commitc7f66d7d14cea365e73ac5fcb2cf80e3b9f823fc
tree9b88850bc07cf4825f0c8123f58797e94b11f0a0
parent111a1344811920fa0116177fa5ccb6e4a2cc2bb6
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>
debian/templates/apache-shared-intranet.conf
debian/templates/apache-shared-opac.conf