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

transition.retry broken w/ initial transition on Ember-2.14.0-beta.1 #15190

Closed
workmanw opened this issue Apr 28, 2017 · 6 comments
Closed

transition.retry broken w/ initial transition on Ember-2.14.0-beta.1 #15190

workmanw opened this issue Apr 28, 2017 · 6 comments
Labels
Milestone

Comments

@workmanw
Copy link

Here is a reproduction app: https://github.com/workmanw/router-retry-bug
Here is a live demo: https://workmanw.github.io/router-retry-bug

(I couldn't make a twiddle because it doesn't seem to support beta builds at the moment)

The issue seems to be that if the initial [first] transition within an ember app is aborted via redirect, then later someone tries to call transition.retry it doesn't work as expected. While it does ultimately transition correctly, it doesn't update the URL. You should be able to easily reproduce this with the live demo above.

I bisected this issue and it seems to be cause by this PR: #15168

CC: @cibernox

@rwjblue
Copy link
Member

rwjblue commented Apr 29, 2017

Ya, the bug is ultimately over in router.js. It seems like an interaction between tildeio/router.js#211 and tildeio/router.js#197.

It may just be that if the initial transition is aborted, that we change the method from replace...

@cibernox / @alexspeller - Can one of y'all take a look and help me hash out the right solution?

@rwjblue rwjblue added the Bug label Apr 29, 2017
@rwjblue rwjblue added this to the 2.14.0 milestone Apr 29, 2017
@cibernox
Copy link
Contributor

I'm on holidays until Wednesday. Since my change was the last one, I'd try the same reproduction with the previous version of router.js. At least we know what PR broke it, although I suspect it's mine.

@rwjblue
Copy link
Member

rwjblue commented Apr 29, 2017

Ya, almost certainly yours. However, I think the solution is that we need to do the same sort of thing before deciding to inherit the method type. Basically, if the method type set to replace only because of a redirect on initial transition into the app, then we do not keep it as replace...

@alexspeller
Copy link
Contributor

I'm staring at a deadline at the moment, I'll look at this ASAP

@cibernox
Copy link
Contributor

cibernox commented May 4, 2017

I'll also try to look at this at some point today.

@workmanw workmanw changed the title transition.retry broken w/ initial transition on Ember-2.13.0-beta.1 transition.retry broken w/ initial transition on Ember-2.14.0-beta.1 May 18, 2017
@rwjblue
Copy link
Member

rwjblue commented May 18, 2017

tildeio/router.js#213 should fix...

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

No branches or pull requests

4 participants