routeOverride is deprecated and is slated for removal. #477
-
Previously I was setting the routeOverride globally to markdown {
routeOverride.set(KebabCase) // e.g. "ExamplePage" to "example-page"
} I've also added some custom tasks that will traverse the article list to retrieve the route override and apply it to the article path. val fileOverride = kobweb.markdown.routeOverride.get()
.....
val articleRoute = fileOverride(blogArticle.nameWithoutExtension) Now It's deprecated, and when I remove it completely article paths are in this format The reason I'm taking this path is that I don't want to define an override for each article I have manually. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The default now is kebab case. See also: https://github.com/varabyte/kobweb#legacy-routes If you changed your route override logic to output a 💩 emoji you'll see the final result will still be kebab case |
Beta Was this translation helpful? Give feedback.
The default now is kebab case. See also: https://github.com/varabyte/kobweb#legacy-routes
If you changed your route override logic to output a 💩 emoji you'll see the final result will still be kebab case