diff --git a/app/Http/Controllers/SearchController.php b/app/Http/Controllers/SearchController.php index bfff7b5b8..0ae3cd289 100644 --- a/app/Http/Controllers/SearchController.php +++ b/app/Http/Controllers/SearchController.php @@ -87,7 +87,7 @@ class SearchController extends BasePageController $tags ?? [] ); - $results = $this->paginate($rslt ?? [], $rslt[0]->_totalrows ?? 0, config('nntmux.items_per_page'), $page, $request->url(), $request->query()); + $results = $this->paginate($rslt ?? [], $rslt[0]->_totalrows ?? 0, config('nntmux.items_per_page'), $page, request()->url(), request()->query()); $this->smarty->assign( [ @@ -161,7 +161,7 @@ class SearchController extends BasePageController [$searchVars['searchadvcat'] === '' ? -1 : $searchVars['searchadvcat']] ); - $results = $this->paginate($rslt ?? [], $rslt[0]->_totalrows ?? 0, config('nntmux.items_per_page'), $page, $request->url(), $request->query()); + $results = $this->paginate($rslt ?? [], $rslt[0]->_totalrows ?? 0, config('nntmux.items_per_page'), $page, request()->url(), request()->query()); $this->smarty->assign( [