diff --git a/public/js/extra.js b/public/js/extra.js index 439ee983f..632c3add9 100644 --- a/public/js/extra.js +++ b/public/js/extra.js @@ -847,7 +847,7 @@ const anchorForId = id => { const anchor = document.createElement('a') anchor.ariaHidden = 'true' anchor.className = 'anchor hidden-xs' - anchor.href = new URL(`#${id}`, document.location).toString() + anchor.href = new URL(`${document.location.search}#${id}`, document.location).toString() anchor.innerHTML = '' anchor.title = id return anchor diff --git a/public/js/index.js b/public/js/index.js index e9d5859c4..878b8513f 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -1087,7 +1087,7 @@ function changeMode (type) { } if (appState.currentMode !== modeType.edit) { $(document.body).css('background-color', 'white') - updateView() + refreshView() } else { $(document.body).css( 'background-color',