fix route when reload the page from the front-end