Redirect route to another route

Is there a way to do this?
2 Replies
Andro D.
Andro D.11mo ago
Found a way by using Redirect from react-router-dom. I was just wondering if it is possible on route definition.
Filip
Filip11mo ago
Nice work @Andro D. Currently, what you did is the only way to do a frontend redirect. But what you propsed is a great idea and one that we've already considered. Here's the relevant issue if you're curious: https://github.com/wasp-lang/wasp/issues/381
GitHub
[Analyzer] Add union types to Wasp · Issue #381 · wasp-lang/wasp
If we have route and if it can point to either page or another route, how would this work right now in Wasp? We would have to say, in Wasp langauge definition, that route declaration type has three...
Want results from more Discord servers?
Add your server