I am trying to embed an Apps Script gadget with its URL parameters in a Google Site but the rendered gadget ignores the URL parameters. It can retrieve only Google-site-url parameters. Please check it here.
Apps Script code for the Gadget is
function doGet(e){
var app = UiApp.createApplication();
if(e.parameter.page == 'hello') app.add(helloPanel_());
else app.add(hiPanel_());
return app;
}
function helloPanel_(){
var app = UiApp.getActiveApplication();
return app.createLabel('You are at hello panel');
}
function hiPanel_(){
var app = UiApp.getActiveApplication();
return app.createLabel('You are at hi panel');
}
This used to work earlier until the Google Apps Script Gadget URLs were re-branded with a new structure.
I want to know if this is intended functionality or is it a bug? If a bug, I'll report it Issue tracker.