1) Go to a private event show page without logging in to LetsDine.
2) Enter the number of seats and phone number.
3) Click join event
4) The login page will show up
5) Login with your email and password.
6) Click sign in.
The default error page will be show. "Oops something went wrong"
Cause
This is because private events have special urls, instead of the normal
letsdine.co/events/event_name
it has something like
http://www.letsdine.co/events/5JImM8GLxZLNUbZqhPsvXA
where the last part is a special token generated when the private event is created
When a user signs in and tries to go back to the event page they are taken to the default event url i.e. letsdine.co/events/event_name instead of letsdine.co/events/token
The user needs to be taken back to letsdine.co/events/token when the event is private
Steps to reproduce
1) Go to a private event show page without logging in to LetsDine. 2) Enter the number of seats and phone number. 3) Click join event 4) The login page will show up 5) Login with your email and password. 6) Click sign in.
The default error page will be show. "Oops something went wrong"
Cause
This is because private events have special urls, instead of the normal letsdine.co/events/event_name it has something like http://www.letsdine.co/events/5JImM8GLxZLNUbZqhPsvXA where the last part is a special token generated when the private event is created
When a user signs in and tries to go back to the event page they are taken to the default event url i.e. letsdine.co/events/event_name instead of letsdine.co/events/token
The user needs to be taken back to letsdine.co/events/token when the event is private