Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use redirect in route #1533

Merged
merged 1 commit into from
Aug 18, 2023
Merged

fix: use redirect in route #1533

merged 1 commit into from
Aug 18, 2023

Conversation

tomjeatt
Copy link
Collaborator

@tomjeatt tomjeatt commented Aug 18, 2023

Closes #1518

Found a much quicker fix. Our implementation was using <Redirect to={} from={} /> which was behaving inconsistently. Router v5 documenation suggests using a nested route:

<Route ... >
    <Redirect>
</Route>

This has fixed the problem without needing to bump the version of React Router.

@vercel
Copy link

vercel bot commented Aug 18, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
interbtc-ui-interlay ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 18, 2023 2:50pm
interbtc-ui-interlay-testnet 🔄 Building (Inspect) Visit Preview Aug 18, 2023 2:50pm
interbtc-ui-kintsugi ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 18, 2023 2:50pm
interbtc-ui-kintsugi-testnet ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 18, 2023 2:50pm

@github-actions
Copy link

Running Lighthouse audit...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[chore] Bump React Router Dom
1 participant