fix: correct links content with query symbol (#2377)
This commit is contained in:
parent
5fceb70971
commit
293534fb8b
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user