mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-21 09:16:30 -05:00
Fix anchor links dropping query parameter
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
28c01f4a6b
commit
60325bba49
2 changed files with 2 additions and 2 deletions
|
@ -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 = '<i class="fa fa-link"></i>'
|
||||
anchor.title = id
|
||||
return anchor
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue