I am implementing routing with karax and refreshing a page outside of the root path returns a 404 response. I am assuming that this is probably a problem because index.html is the starting point and there is no other root html. I have implemented the routing based on the routing on the nim forum, but is there any way to render the page even if it is refreshed in /blogs, etc.?
I am new to nim so any advice would be great. Thanks.
This is a repo I created based on the nim forum code.
I guess your browser side routing works by rewriting the url. This works but the browser do not send a http get to the url, but just rewrites the url. When a refresh occurs, the browser sends a http get to the rewritten url (which does not exist).
So you have a few options now:
Thanks for the reply.
The second method matches and I will proceed with the implementation that way!
Thanks for the quick reply.