Skip to content

Commit

Permalink
Uncomment redirect logic in download page
Browse files Browse the repository at this point in the history
  • Loading branch information
gdams committed Jan 28, 2025
1 parent ccd60f5 commit c75559a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/pages/download.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { useEffect } from "react"
import { navigate } from "gatsby"

// Extend the Window interface to include gtag
declare global {
Expand Down Expand Up @@ -48,9 +49,9 @@ const DownloadPage = ({ location }) => {
const shouldRedirect = !link

useEffect(() => {
// if (shouldRedirect) {
// navigate("/temurin/releases")
// }
if (shouldRedirect) {
navigate("/temurin/releases")
}
}, [])

if (shouldRedirect) {
Expand Down

0 comments on commit c75559a

Please sign in to comment.