2
0

Fix mention matching ignoring path (#36626)

This commit is contained in:
Claire
2025-10-28 15:05:39 +01:00
committed by GitHub
parent 8fb524e07f
commit 3ccb6632f2

View File

@@ -75,7 +75,7 @@ const compareUrls = (href1, href2) => {
const url1 = new URL(href1); const url1 = new URL(href1);
const url2 = new URL(href2); const url2 = new URL(href2);
return url1.origin === url2.origin && url1.path === url2.path && url1.search === url2.search; return url1.origin === url2.origin && url1.pathname === url2.pathname && url1.search === url2.search;
} catch { } catch {
return false; return false;
} }