aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGravatar Alexis Degrugillier <aledeg@users.noreply.github.com> 2022-10-18 17:22:54 -0400
committerGravatar GitHub <noreply@github.com> 2022-10-18 23:22:54 +0200
commit0fd608420e197d24a1fbd37d10e9d2372ac18df6 (patch)
treecae42226d2de6deaaf6ecf6b0bd6cd4abd7c0d1e /lib
parent3c4a3617a27901c6c46b9a6a2ca3690c94a2e09d (diff)
Remove ajax parameter when modifying the request (#4743)
Before, when clicking on the author name to use as a filter, the displayed page was a result page from the ajax query. This was due to the use of the ajax parameter in the query. Now, the ajax parameter is removed from the query before displaying the filters. Fix #4726
Diffstat (limited to 'lib')
-rw-r--r--lib/Minz/Request.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Minz/Request.php b/lib/Minz/Request.php
index 62d042f28..bcd914612 100644
--- a/lib/Minz/Request.php
+++ b/lib/Minz/Request.php
@@ -98,6 +98,7 @@ class Minz_Request {
return self::$originalRequest;
}
public static function modifiedCurrentRequest(array $extraParams = null) {
+ unset(self::$params['ajax']);
$currentRequest = self::currentRequest();
if (null !== $extraParams) {
$currentRequest['params'] = array_merge($currentRequest['params'], $extraParams);