-
Notifications
You must be signed in to change notification settings - Fork 214
[bz5707658] ac.http.redirect does not work from a child mojit #293
Comments
@rwaldura this is still an issue, feel free to create a card in trello for prioritization. |
Workaround is to pass the parent's action context to the child mojit. |
Mixing "ac" from parent to child chould be problematic. I think the solution for this is also related to the work I have done on error propagation from child to parents, etc. I will think more about this. |
seems this related to an issue i have, ac.http.redirect is not working in HTMLFrameMojit child, this was working fine in 0.5.2 but got broken by 0.5.3 |
@sqawasmi can you provide an repro case? |
the following is a sample repo: in mojito 0.5.2, requesting the following link: however, running the same application using mojito 0.5.3 will give HTTP/1.1 200 OK with "null" in the body. |
That's all I need, thanks @sqawasmi. I will try to get this fix for |
Fixed issue #293. HTMLFrameMojit should honor child metas, including ac.http.redirect() related metas.
This fix will be included in tomorrow's release! |
ac.http.redirect
is not working because i'm using it in the child mojit.The parent calls
ac.composite.done
to collect the children views and stop the execution.But here,
ac.http.redirect
stops the child mojit's execution & the parent still keeps on running.mojito/app/addons/ac/http.server.js
- the "redirect" method callsac.done
inside, which will not work in parent-chilren mojit scenario.The text was updated successfully, but these errors were encountered: