File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -274,7 +274,7 @@ window.onload = function() {processParameters(); hideCode();};
274274function encodeQueryParam(name, first = false) {
275275 var value = localStorage.getItem(name);
276276 if (value === null || value == '') return '';
277- var sep = first ? '? ' : '&';
277+ var sep = first ? '' : '&';
278278 return sep + encodeURIComponent(name) + '=' + encodeURIComponent(value);
279279}
280280
@@ -371,7 +371,7 @@ if (params !== undefined && params != '') {
371371launchApp = function(id, src) {
372372 var params = encodeQueryString();
373373 if (params !== undefined && params != '') {
374- src = src + params;
374+ src = src + '?' + params;
375375 }
376376 // This is now required by Posit Connect for embedding content in a site
377377 var address = window.location.toString().split('?')[0].split('#')[0];
You can’t perform that action at this time.
0 commit comments