mardi 1 septembre 2015

Url not updating when new model is saved

router.js

  this.route('claim', function() {
    this.route('new');
    this.route('edit', { path: '/:claim_id' });
  });

claim.new -> redirect to claim.edit with an empty model. this.transitionTo('claim.edit', model);

Initially, because the model is not saved we get: index.html#/claim/null

When we save the model, it continues to display as index.html#/claim/null instead of say index.html#/claim/87

Is there a way to force the url to refresh?




Aucun commentaire:

Enregistrer un commentaire