Skip to content

Commit

Permalink
fix: slash
Browse files Browse the repository at this point in the history
  • Loading branch information
sxyazi committed Oct 19, 2023
1 parent 0929941 commit b2bb600
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/theme/NotFound.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { useEffect } from "react"

export default function NotFoundWrapper(props) {
useEffect(() => {
if (location.href.includes("/docs/")) {
location.href = location.href.replace("/docs/", "/")
if (location.href.includes("/docs")) {
location.href = location.href.replace("/docs", "")
}
}, [])

Expand Down

0 comments on commit b2bb600

Please sign in to comment.