You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I'm trying to integrade vaadin router in a lit-element project. I realised if you refresh any page other than the home page, like /users/kim you are going to get a 404.
That is obviously because the webserver (whatever it is) looks for the physical file /users/kim. What is the preferred way to workaround this?
A redirect to index.html by default is not optimal, because you will get index.html even if you try to visit a wrong url like /fake_url_that_actually_should_return_404.
The text was updated successfully, but these errors were encountered:
I too have a similar issue. I have a lit project as well and I am getting a similar issue only on child routes.
/home WORKS
/customers WORKS
/customers/14 NOT WORK
When I refresh the page I do not get a 404 on the page, but styles listed using relative paths in the index.html get a 404 bc the base url i believe changes on a refresh when on a child route.
Hello, I'm trying to integrade vaadin router in a lit-element project. I realised if you refresh any page other than the home page, like
/users/kim
you are going to get a 404.That is obviously because the webserver (whatever it is) looks for the physical file
/users/kim
. What is the preferred way to workaround this?A redirect to
index.html
by default is not optimal, because you will getindex.html
even if you try to visit a wrong url like/fake_url_that_actually_should_return_404
.The text was updated successfully, but these errors were encountered: