Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix mobile 'add more' button goes to homepage #30

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

philipxyc
Copy link
Contributor

@sampoyigi
Copy link
Member

{{ restaurant_url('local/menus') }} should redirect to the menus page not homepage..

@philipxyc
Copy link
Contributor Author

philipxyc commented Sep 20, 2022

The problem is restaurant_url('local/menus') is not always the menu url of the location you are ordering. For my case, I have a location named test, and it is set to the default location. the restaurant_url('local/menus') here gives me {domain}/default/menus. I even don't have a location called default, so the URL panic and redirects us to the homepage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants