-
Notifications
You must be signed in to change notification settings - Fork 56
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-scroll location type breaks non-root routes in development #21
Comments
Hi @kpfefferle. Thanks for letting us know. I am able to reproduce it. |
This is really strange. I can see the route exists in Inspector. Still digging. This isn't happening on my local branch of dockyard.com but I clearly see it in this demo app |
I suspect that the HistoryLocation is not working properly after being extended |
I believe this is the source of the bug: ember-cli/ember-cli@1171c3d |
tldr; ember-cli's HistorySupport middleware that is used to serve up the baseUrl with any nested urls is hard coded to limit to Short-term solution: we can reopen |
@bcardarella do you have plans of dropping in the solution you mentioned? Would love to not have to go back to my root route every time I live reload 😄 |
I posed it as a possible solution. I'm not the maintainer of the library and was awaiting feedback on the preferred direction. |
@kpfefferle @rwwagner90 @bcardarella I finally had a chance to look at this. I was able to get the nested route working by adding this to
|
Sweet! On Thursday, August 18, 2016, Benny C. Wong [email protected]
Brian Cardarella |
@bennycwong I can confirm that adding Thanks for tracking down a workaround! |
#28 has the instructions in the readme. I'm having a hard time explaining how to concisely explain why that config is needed, so I just linked to the issue. |
Create new ember-cli app:
ember new router-scroll-test
cd router-scroll-test
ember-welcome-page
addonember generate route nested
app/templates/nested.hbs
ember serve
localhost:4200/nested
(content loads fine)Introduce ember-router-scroll:
ember install ember-router-scroll
router.js
; setlocationType: 'router-scroll'
)ember serve
localhost:4200/nested
It seems that something in the
'router-scroll'
locationType is breaking the development express server's ability to load the app directly into a non-root route. This is especially frustrating when livereload is constantly refreshing the page during development (triggering this error each time).The text was updated successfully, but these errors were encountered: