You are viewing a single comment's thread from:
RE: The Daily Adventures of a SteemPeak Developer #9 - A New Error Page
Looks really cool! One thing that always annoted me a bit about the error page is that invalid pages are redirected to https://steempeak.com/error. E.g., when I try to access https://steempeak.com/@jpphoto but type https://steempeak.com/@jpphotoo by accident, I get redirected to https://steempeak.com/error and need to type again instead of just removing the extra 'o'.
I know, it is a bit better now but still not perfect. It's not easy to do that without rendering the page server side o...r just I'm not aware of the correct way to handle it :D
With plain javascript, you could read the query params and set the url without actually redirecting:
Routers usually have this function as well. It would also be good to use this to have the url change to the post url when opening a post in a pop-out panel
I've tried to avoid this because it's not officially supported in
vue-router
:https://github.com/vuejs/vue-router/issues/703
It's mentioned as a workaround (also a recommended workaround) but I always hoped to have a proper official fix. But considering that the ticket is 3 years old and it's still open maybe I'll give it a try :D