Announcement

Collapse
No announcement yet.

AfterCreate entity redirect to another entity

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • AfterCreate entity redirect to another entity

    Hey guys,

    After I create a specific entity I need to redirect to another entity. Anyone knows how can i do that?

    Thanks

  • #2
    You can override exit method on desired view with someting like this :

    PHP Code:
    var url '#' this.scope '/view/' this.model.id;
    this.getRouter().navigate(url, {triggerfalse});
    this.getRouter().dispatch(this.scope'view', {
    idthis.model.id,
    rootUrlthis.options.rootUrl,
    modelthis.model,
    }); 

    Comment

    Working...
    X