Skip to content

Commit

Permalink
Fix issue where local search redirect does not work on local menu page
Browse files Browse the repository at this point in the history
Signed-off-by: Sam <[email protected]>
  • Loading branch information
sampoyigi committed Apr 12, 2023
1 parent c49f5ea commit e9e9a86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion traits/SearchesNearby.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e9e9a86

Please sign in to comment.