mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-21 17:26:29 -05:00
fix: anchor links
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
1b91232909
commit
c543dc1f23
1 changed files with 1 additions and 1 deletions
|
@ -847,7 +847,7 @@ const anchorForId = id => {
|
|||
const anchor = document.createElement('a')
|
||||
anchor.ariaHidden = 'true'
|
||||
anchor.className = 'anchor hidden-xs'
|
||||
anchor.href = `${document.location.origin}${document.location.pathname}#${id}`
|
||||
anchor.href = new URL(`#${id}`, document.location).toString()
|
||||
anchor.innerHTML = '<i class="fa fa-link"></i>'
|
||||
anchor.title = id
|
||||
return anchor
|
||||
|
|
Loading…
Reference in a new issue