-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
back button broken on safari mobile #40
Comments
I can reproduce this bug with the code from https://github.com/aurelia/app-contacts, either with original package.json or with updated package.json (with latest aurelia dependencies). There are two new issues here, not same as the linked issue router#574 which is solved.
|
It is kind of a wrong place for this issue. Since it's not related with browser history api. |
@huochunpeng where would be a more appropriate place for this issue? |
Not exactly sure, could be https://github.com/aurelia/history or https://github.com/aurelia/router. |
(1) is a duplicate of aurelia/router#528 @huochunpeng any chance you can take a look at (2) and confirm whether it is an iOS issue or not? |
I guess (2) is iOS bug. In aurelia/app-contacts#46, There is a related link showing a similar alert/confirm issue on iOS. |
Thanks @huochunpeng great work as always. |
to reproduce run the contact manager tutorial. using safari mobile on iPhone the back button does not trigger canDeactivate as expected.
this does not work on safari mobile, and on devices where the the promp is shown the browser history is not being maintained
click back
if not on safari mobile prompt shows
click cancel
click back
if not on safari mobile prompt shows
click ok
user is routed to two history locations back as back button was pressed twice(this might be a separate bug)
Expected: user is only routed one history location back. it seems like the browser history is not being maintained properly, besides the issue of the the back button triggering the prompt on safari mobile.
The text was updated successfully, but these errors were encountered: