Skip to content

Commit 896f24e

Browse files
committed
hotfix: swap comparison logic
1 parent 4f332d1 commit 896f24e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

public/404.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
/**
3737
* We will redirect only if the page belongs to blog namespace
3838
*/
39-
if (HomepageMenu.find(menu => menu.path === resource)) {
39+
if (HomepageMenu.find(menu => resource.includes(menu.path))) {
4040
sessionStorage.redirect = resource
4141

4242
refresh = document.createElement('meta')

0 commit comments

Comments
 (0)