duh, don't include query string params in referral check
This commit is contained in:
parent
fb51999b1e
commit
4f87c68e82
1 changed files with 4 additions and 1 deletions
|
|
@ -20,7 +20,10 @@ const isCurrentPage = (urlPath: string) => {
|
|||
}
|
||||
const url = getUrlFromPath(urlPath);
|
||||
if (!url) return false;
|
||||
return window.location.href === url.href;
|
||||
return (
|
||||
window.location.origin === url.origin &&
|
||||
window.location.pathname === url.pathname
|
||||
);
|
||||
};
|
||||
|
||||
export const articleIsNotCurrentPage = (article: Article) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue