W
Wasp-langβ€’13mo ago
SoyMilkIsOk

Wildcard routes for 404/not found redirects?

I don't see a way to make this possible at the moment.
15 Replies
Zeko369
Zeko369β€’13mo ago
You can technically do it as of now by modifying the template wasp uses to build your app I can show you if you're interested in that, but pretty sure @Wasp Team might have a better idea πŸ˜…
miho
mihoβ€’13mo ago
We'll solve it soonish πŸ˜„ for the next release (should be out in less than a month)
SoyMilkIsOk
SoyMilkIsOkβ€’13mo ago
Woo thanks guys! This and favicons are all I need and I’m gonna launch my app to the public!
martinsos
martinsosβ€’13mo ago
Don't listen to @Zeko369 he solves everything by turning Wasp inside out πŸ˜„ Kidding, that (modifying templates) is a resourceful way to patch Wasp when something is missing!
Zeko369
Zeko369β€’13mo ago
😜
Vinny (@Wasp)
Vinny (@Wasp)β€’13mo ago
awesome! looking forward to seeing it live πŸ™‚
matijash
matijashβ€’13mo ago
^ @Zeko369 in action πŸ˜„
Zeko369
Zeko369β€’13mo ago
πŸ˜‚πŸ˜‚πŸ˜‚πŸ˜‚
MEE6
MEE6β€’13mo ago
Wohooo @Zeko369, you just became a Waspeteer level 9!
crunchyTaco
crunchyTacoβ€’3mo ago
Hey folks, is there another solution for wildcard routes while we wait for the dev team to implement this?
miho
mihoβ€’3mo ago
Soooo, it seems it perfectly possible to do this already in Wasp πŸ™‚ You can do this, and it will catch any routes:
route WildcardRoute { path: "*", to: WildcardPage }
page WildcardPage {
component: import { WildcardPage } from "@src/Test"
}
route WildcardRoute { path: "*", to: WildcardPage }
page WildcardPage {
component: import { WildcardPage } from "@src/Test"
}
No description
martinsos
martinsosβ€’3mo ago
This probably needs to be the last route in the main.wasp though right?
miho
mihoβ€’3mo ago
I think so yes πŸ‘