@@ -281,14 +281,14 @@ function encodeQueryParam(name, first = false) {
281281function encodeQueryString() {
282282 // We got data from localStorage. So, if no data, no query string!
283283 if (!window.localStorage) return('');
284- query = encodeQueryParam('login', true);
285- query += encodeQueryParam('email') + encodeQueryParam('displayname');
286- query += encodeQueryParam('firstname') + encodeQueryParam('lastname');
287- query += encodeQueryParam('iemail') + encodeQueryParam('iid');
284+ query += encodeQueryParam('iemail', true) + encodeQueryParam('iid');
288285 query += encodeQueryParam('ifirstname') + encodeQueryParam('ilastname');
289286 query += encodeQueryParam('institution');
290287 query += encodeQueryParam('icourse') + encodeQueryParam('ictitle');
291288 query += encodeQueryParam('iurl') + encodeQueryParam('iref');
289+ query = encodeQueryParam('login');
290+ query += encodeQueryParam('email') + encodeQueryParam('displayname');
291+ query += encodeQueryParam('firstname') + encodeQueryParam('lastname');
292292 // Detect if we have the Sepia or Night theme
293293 // TODO: refine this because it is *always* detected
294294 //if (document.getElementsByClassName('color-theme-1')) {
@@ -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];
0 commit comments