Commit e2fa6c11 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

AddApplication: Redirect to edit of index.html instead of the app

parent 0c3406ff
......@@ -100,7 +100,7 @@
return putNewAppList(gadget, app_list);
})
.push(function () {
document.location = window.location.origin + window.location.pathname + redirect_to;
return gadget.redirect({page: "editor", url: redirect_to});
});
}
......@@ -165,6 +165,7 @@
//////////////////////////////////////////////
// acquired methods
//////////////////////////////////////////////
.declareAcquiredMethod("redirect", "redirect")
.declareAcquiredMethod("crib_sw_get", "crib_sw_get")
.allowPublicAcquisition("crib_sw_get", function (argument_list) {
return this.crib_sw_get(argument_list[0]);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment