Skip to content

Commit aff4ee0

Browse files
committed
Remove hash from path
1 parent 0868081 commit aff4ee0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

components/Page/Footer.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ export const Footer: React.FunctionComponent<IFooterProps> = (props: React.Props
1111
const [path, setPath] = React.useState<string>()
1212

1313
useEffect(() => {
14-
const crntPath = router.asPath;
14+
let crntPath = router.asPath;
15+
crntPath = crntPath.split("#")[0];
16+
1517
if (crntPath === "/") {
1618
setPath("")
1719
} else if (crntPath.startsWith("/")) {

0 commit comments

Comments
 (0)