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
1f8f09c539
commit
1b91232909
1 changed files with 1 additions and 1 deletions
|
@ -847,7 +847,7 @@ const anchorForId = id => {
|
||||||
const anchor = document.createElement('a')
|
const anchor = document.createElement('a')
|
||||||
anchor.ariaHidden = 'true'
|
anchor.ariaHidden = 'true'
|
||||||
anchor.className = 'anchor hidden-xs'
|
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.innerHTML = '<i class="fa fa-link"></i>'
|
||||||
anchor.title = id
|
anchor.title = id
|
||||||
return anchor
|
return anchor
|
||||||
|
|
Loading…
Reference in a new issue