vendredi 8 mars 2019

Cannot Access Ember child route via url and redirects me to the parent route

I want to access a child route via url eg:https://my-app.com/dashboard/library. When i click this, Ember redirects me to https://my-app.com/dashboard and populates this route's model data correctly, but i want to go to https://my-app.com/dashboard/library, with its new model data. From the other hand i can access https://my-app.com/login via url, that has no model data btw.

At environment.js i have locationType: "auto", and my router.js is like:

Router.map(function() {
  this.route('login');
  this.route('dashboard', function() {
    this.route('child', {path: '/child/:child_id'});
    this.route('library');
  });
});

May be a configuration flag or a Router config issue ?

How can i access this child route via url or has something like that happened to any of you?




Aucun commentaire:

Enregistrer un commentaire