mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-19 23:40:07 +00:00
fix: correct links content with query symbol (#2377)
This commit is contained in:
parent
5fceb70971
commit
293534fb8b
1 changed files with 2 additions and 0 deletions
|
@ -331,6 +331,8 @@ function filterHref() {
|
|||
if (href.startsWith('/') || href.startsWith('.'))
|
||||
return href
|
||||
|
||||
href = href.replace(/&/g, '&')
|
||||
|
||||
let url
|
||||
try {
|
||||
url = new URL(href)
|
||||
|
|
Loading…
Reference in a new issue