Skip to content

Instantly share code, notes, and snippets.

@zeppelin
Created December 16, 2014 10:29
Show Gist options
  • Save zeppelin/c7a9497f977829cf4c45 to your computer and use it in GitHub Desktop.
Save zeppelin/c7a9497f977829cf4c45 to your computer and use it in GitHub Desktop.
Replace root URL with the localized root
import Ember from 'ember';
var Route = Ember.Route;
export default Route.extend({
redirect() {
this.replaceWith('root'); // Replace URL: / -> /en-US
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment