-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Router's rootURL isn't working in 1.12 beta #10943
Comments
I've adapted one of @rwjblue jsbins to demonstrate the UnrecognizedURLError: |
I have the same problem, couldn't test glimmer/canary with my app because of this issue |
+1 on not being able to test glimmer/canary because of this. |
@tcjr - That JSBin has roughly the same error in 1.11.3. http://emberjs.jsbin.com/nubotu/1/edit. I have no doubt that this is broken, I am just trying to get a minimal reproduction to start debugging. |
The error can be reproduced by creating new ember-cli app and just setting When using ember 1.11.3,
|
Ok, got the app working by adding But now, I can at least start working on the deprecation warnings my app have :) |
@rwjblue I think my jsbin might not be illustrating the problem correctly. I cannot get any routes in my app to work if a rootURL is set on the router. |
This is only broken with 'auto' location. 'history' location is still working correctly. |
@gdub22 - Awesome, thank you for confirming! |
That means this is almost certainly a result of #10483 (which mostly modified auto-location). |
This is still an issue in the released 1.12 version, but as @gdub22 said: it works with |
Does this mean |
this is definitely a regression |
having the issue as well with I just switched to |
This needs a quick fix |
Any idea when 1.12.1 will be out? This bug is in since beta 1 |
We could release 1.12.1 anytime (there are a few other fixes already queued up in the release channel), but this bug isn't fixed. I would prefer to have this fixed before releasing. |
Could the error be on line 122 here: https://github.com/emberjs/ember.js/pull/10483/files#diff-782353730e67c473ee6609c98230661dR122 Either way this resolves to true or false and not to the location... Update: my bad, it does resolve to the last value, thx rwjblue to hand me a pair of glasses for my eyes ;-) |
Why would it be true or false? In general doing var foo = { bar: 'stuff'};
var bar = null;
foo && foo.bar // => 'stuff'
bar && bar.bar // => undefined |
@rwjblue Really appreciated 👍 Would love to have been able to help on this one ... :-/ |
Feel free to ping me in the future on location class issues, particularly with auto.. It's too bad this was broken for a month..had I heard I would have PR'd immediately to fix. Thanks @rwjblue for fixing! |
@rwjblue @jayphelps I just tested ember#beta and this seems to be an issue again, not sure why. ember#release is working fine now |
@davidpett - Can you provide steps to reproduce? |
I'll work up a demo repo and link to it. Should have done it first, sorry. On Thu, Jun 11, 2015 at 4:47 PM Robert Jackson notifications@github.com
|
No worries really, I just want to make sure we are on the same page as to what we are talking about. It took me a bit of time to replicate this issue in ember-cli originally because if you use |
Happy to investigate with reproduction steps. I'll take a look at diff and see if I see anything suspicious. |
@rwjblue @jayphelps https://github.com/davidpett/auto-location-base-url i removed the base tag. i get the same issue in beta as i did in 1.12.0, but that was fixed in 1.12.1 |
@davidpett @rwjblue figured it out. The beta has not yet gotten this fix #11303. Basically, the concrete location class isn't getting Thanks for the demo app! Would have taken a lot longer to find this without it. In ember#beta In ember#canary App runs fine with ember#canary. |
awesome! it's a little harder with ember-cli and some of these issues, can't simply do a jsbin anymore thanks |
@rwjblue any chance of getting that PR merged into the beta branch before 1.13 release tomorrow? |
@davidpett Re: ember-cli, no jsbin, there is a work-in-progress on that here: http://twiddle.joostdvrs.com Might be helpful ... |
Yeah @acorncom, it's not there yet, but good start. Faster to run cli and create demo app |
@davidpett Sounds good, good to know ;-) |
Great catch, sorry about the extra work tracking down my mistake :( It is cherry-picked into beta now. |
confirm that it works, thanks @jayphelps for finding it and @rwjblue for pushing it! |
I'm having a problem with the router in 1.12.0-beta.1. I'm attempting an upgrade from 1.11.
None of my routes are being recognized, and I believe it is because of this pr: #10483 . It looks like the router is no longer accommodating a rootURL. Our router is defined like this:
If I step through the router code, I see that the rootURL is still attached when it goes into the code trying to find a handler, and (unsurprisingly) can't find any.
The text was updated successfully, but these errors were encountered: