Fix anchor links dropping query parameter
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user