Skip to content

Commit 53e2e33

Browse files
committed
? out of encodeQueryString()
1 parent f34de1f commit 53e2e33

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

R/learnitdown_init.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ window.onload = function() {processParameters(); hideCode();};
274274
function 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 != '') {
371371
launchApp = 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];

0 commit comments

Comments
 (0)