1
0
Fork 1
mirror of https://github.com/elk-zone/elk.git synced 2024-11-20 07:49:57 +00:00

fix: correct links content with query symbol (#2377)

This commit is contained in:
Sma11X 2023-10-23 00:14:37 +08:00 committed by GitHub
parent 5fceb70971
commit 293534fb8b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -331,6 +331,8 @@ function filterHref() {
if (href.startsWith('/') || href.startsWith('.')) if (href.startsWith('/') || href.startsWith('.'))
return href return href
href = href.replace(/&/g, '&')
let url let url
try { try {
url = new URL(href) url = new URL(href)