From e9e9a86833e2028e9c1d7a31ec2552cd4759718c Mon Sep 17 00:00:00 2001 From: Sam <6567634+sampoyigi@users.noreply.github.com> Date: Wed, 12 Apr 2023 14:54:10 +0100 Subject: [PATCH] Fix issue where local search redirect does not work on local menu page Signed-off-by: Sam <6567634+sampoyigi@users.noreply.github.com> --- traits/SearchesNearby.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/traits/SearchesNearby.php b/traits/SearchesNearby.php index 42d5b5f..031fe38 100644 --- a/traits/SearchesNearby.php +++ b/traits/SearchesNearby.php @@ -44,7 +44,7 @@ public function onSearchNearby() if ($redirectPage = post('redirect')) return Redirect::to($this->controller->pageUrl($redirectPage)); - return Redirect::to(restaurant_url($this->property('menusPage'))); + return Redirect::to(restaurant_url($this->property('menusPage'), ['location' => null])); } catch (Exception $ex) { if (Request::ajax()) throw $ex;