mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-24 10:46:30 -05:00
fix: anchor links
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
1f8f09c539
commit
1b91232909
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 = `#${id}`
|
||||
anchor.href = `${document.location.origin}${document.location.pathname}#${id}`
|
||||
anchor.innerHTML = '<i class="fa fa-link"></i>'
|
||||
anchor.title = id
|
||||
return anchor
|
||||
|
|
Loading…
Reference in a new issue