How to specify a dynamic root URL in Ember.js?
Ember allows for a root URL to be specified on the router here: http://emberjs.com/guides/routing/#toc_specifying-a-root-url App.Router.reopen({ rootURL: '/blog/' }); Is there a way to specify a dynamic URL like: /:region/:locale/ ? The rootURL assignment seems to only accept a literal string. Assets (including Ember) are being loaded from a common directory like /assets/ . You can set rootURL dynamically within Router.init method, e.g. App.Router.reopen({ init: function() { // set rootURL using regex to extract appropriate // rootURL based on current window location this.set('rootURL', window