emmersive-io / client

0 stars 0 forks source link

Inconsistent behavior when closing a "deep link" #6

Open ziwad opened 8 years ago

ziwad commented 8 years ago

Tried clicking a link that goes directly to the Tasks or Activity feed of a project from within Slack. Once the screen opens, it won't let you close that screen and return to the top level Project home screen. However, if you copy that link into the clipboard and paste it into the browser, it will let you close the Activity/Task screen but it returns you to the page you were previously on in the browser. Seems like the optimal solution would be to return the user to the top-level Project home screen within Emmersive for either case.

roycetucker commented 8 years ago

Our router needs an overhaul for stuff like this to provide consistent back button behavior (in-app and browser back buttons) and page transitions.

It shouldn't be hard to push all traffic through the router instead of using location.assign/replace and add handling for special circumstances, such as screens you shouldn't be able to back to (login/register), temporary states that should change on back (having the basement open), and deep linking into open popups.