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

Add App Page: Don't store index.html in app_url

parent e18145e1
......@@ -148,6 +148,7 @@
options.to_path = options.to_path ? options.to_path + "/" : options.to_path;
options.default_page = options.to_path + options.redirect_url;
options.redirect_to = scope + options.default_page;
options.scope = scope;
var promise_list = [];
if (gadget.props.element
.querySelector("form.crib-load-from-zip .load-zip-file").files.length !== 0) {
......@@ -171,7 +172,8 @@
application_image_type: undefined,
application_image_url: undefined,
application_description: undefined,
application_url: options.redirect_to,
application_url: options.default_page === "index.html" ?
options.scope : options.redirect_to,
application_path: options.to_path,
application_edit_page: options.redirect_to,
application_crib: options.crib_url,
......
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