I have generated a route 'home' and I would like to change my base url '/' to be 'home' i have tried adding this line of code to the router.js
App.Router.reopen({
  rootURL: '/blog/'
});
I have also tried setting my base-url in config/environment.js to '/home/'
// app/routes/application.js
export default Ember.Route.extend({
    redirect: function () {
        this.transitionTo('home');
    }
});
// router.js
Router.map(function() {
  this.route('home', { path: '/home' });
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With