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
This commit is contained in:
Alexis Degrugillier 2022-10-18 17:22:54 -04:00 committed by GitHub
parent 3c4a3617a2
commit 0fd608420e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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);