Skip to content

add rootURL support to redirects#334

Merged
rwjblue merged 1 commit intoember-fastboot:masterfrom
kellyselden:rootUrl
Jan 14, 2017
Merged

add rootURL support to redirects#334
rwjblue merged 1 commit intoember-fastboot:masterfrom
kellyselden:rootUrl

Conversation

@kellyselden
Copy link
Copy Markdown
Member

No description provided.

@jasonmit
Copy link
Copy Markdown
Contributor

jasonmit commented Jan 13, 2017

@the NoneLocation should have the rootURL set when the router instantiates it:
https://github.com/emberjs/ember.js/blob/v2.10.0/packages/ember-routing/lib/location/none_location.js#L42 (I fixed this a few versions back in Ember)

I would use this over reading from the config as the values could be different from the router's. I know a few apps that dynamically generate the rootURL to support things like locale prefixing. /en/home, /fr/home, etc.

@kellyselden
Copy link
Copy Markdown
Member Author

@jasonmit Updated to great success.

@rwjblue rwjblue merged commit f75c3fd into ember-fastboot:master Jan 14, 2017
@kellyselden kellyselden deleted the rootUrl branch January 14, 2017 04:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants