-
-
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
FastBoot Bug - Location none doesn't respect rootURL #13464
Comments
@jasonmit perhaps the first step is a failing test |
Sure, I'll add some failing tests on the location none. I'm also interested in gather feedback to see what the preferred fix may be, this way I don't waste cycles iterating on something that might not be wanted. Until then, the reproduction steps are:
|
Here are two failing tests on It didn't appear there was test coverage around location none. /cc @pixelhandler |
I think we should definitely add support for |
Thanks for getting back, I'll take a pass at fixing this either tonight or tomorrow. |
@tomdale ready for you to review. |
Location none doesn't respect the router's
rootURL
. This causes issues while generating urls (link-to's for example will omit therootURL
). Compare this to history's formatURL and you'll see the difference between implementations.This is causing issues within the non-browser path of the
visit
API since it always defaults to thenone
location.I would be happy to help patch, but first would like to hear feedback though before venturing off. For example, do we want to stub out the window.location API when in Node and stick with using the history location, do we patch the none location to respect rootURL in formatURL, or something I'm not thinking of?
Part of this is related to:
ember-fastboot/fastboot#53
The text was updated successfully, but these errors were encountered: