Skip to content

Commit

Permalink
Redirect /explore to /explore/campaigns
Browse files Browse the repository at this point in the history
  • Loading branch information
willemarcel committed Sep 2, 2024
1 parent 8e5cbb2 commit 2d6555d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/nav.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ ListLink.propTypes = {
const NavList = ({ mode }) => {
return (
<GlobalMenu>
<ListLink to="/explore/campaigns" mode={mode}>
<ListLink to="/explore" mode={mode}>
Explore
</ListLink>
<ListLink to="/glossary" mode={mode}>
Expand Down
8 changes: 8 additions & 0 deletions src/pages/explore/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { navigate } from "gatsby"
import { useEffect } from "react"

export default function ExploreRedirect() {
useEffect(() => navigate("/explore/campaigns"))

return false
}

0 comments on commit 2d6555d

Please sign in to comment.