Join Slack
Powered by
Hey, how can I make a custom 404 page?
# kobweb
m
Maurice
04/14/2024, 5:18 PM
Hey, how can I make a custom 404 page?
d
David Herman
04/14/2024, 5:24 PM
You want to use this function:
https://github.com/varabyte/kobweb/blob/17e25243da037a2c3373cca33969ea97175974a4/frontend/kobweb-core/src/jsMain/kotlin/com/varabyte/kobweb/navigation/Router.kt#L262
👍 1
David Herman
04/14/2024, 5:24 PM
I should really add some header docs for that
David Herman
04/14/2024, 5:25 PM
But you can call that inside an @InitKobweb block.
David Herman
04/14/2024, 5:27 PM
The method I linked to basically accepts a composable method with a single int value representing the error code (but that currently is always just 404)
18
Views
Open in Slack
Previous
Next