Skip to content

Commit

Permalink
Add uk redirect path
Browse files Browse the repository at this point in the history
  • Loading branch information
ryangoree committed Jan 16, 2024
1 parent da935a8 commit 2c05eec
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,18 @@ function App() {
<Routes>
<Route path="/" element={<Home />} />
<Route path="/about" element={<About />} />
{/* TODO: Remove hardcoded URL */}
<Route path="/uk" element={<UKRedirect to="https://uk.delv.tech" />} />
</Routes>
</div>
</>
);
}

export default App;

function UKRedirect({ to }: { to: string }) {
console.log("Redirecting to", to);
window.location.replace(to);
return <></>;
}

2 comments on commit 2c05eec

@vercel
Copy link

@vercel vercel bot commented on 2c05eec Jan 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 2c05eec Jan 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.