From: Christopher Faulet Date: Fri, 15 Nov 2024 16:03:06 +0000 (+0100) Subject: MINOR: http-ana: Add option to keep query-string on a localtion-based redirect X-Git-Tag: v3.1-dev14~108 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b2877db47c6a4c8637ac3ccefd4d16c3a38d1985;p=thirdparty%2Fhaproxy.git MINOR: http-ana: Add option to keep query-string on a localtion-based redirect On prefix-based redirect, there is an option to drop the query-string of the location. Here it is the opposite. an option is added to preserve the query-string of the original URI for a localtion-based redirect. By setting "keep-query" option, for a location-based redirect only, the query-string of the original URI is appended to the location. If there is no query-string, nothing is added (no empty '?'). If there is already a non-empty query-string on the localtion, the original one is appended with '&' separator. This patch should fix issue #2728. --- diff --git a/doc/configuration.txt b/doc/configuration.txt index bca9974aee..9bd5d45aef 100644 --- a/doc/configuration.txt +++ b/doc/configuration.txt @@ -11461,6 +11461,14 @@ redirect scheme [code ]