jangabrielsson/fibemu

Frontend doesn't reload/refresh?

PeterV989 opened this issue · 2 comments

I notice that if I perform a reload/refresh of the frontend web ui I get a blank screen with the following in the top left of the page:

{"detail":"Not Found"}

It works when the page loads and the address bar shows

http://localhost:5004/frontend/index.html

but when I navigate away using the navbar, a refresh no longer works. It seems to me that the router in the server isn't responding when there is an endpoint. I tried poking around in the MenuBar.vue code but I'm not familiar with Python or Vue enough to know what I'm doing. You are familiar enough with your code that you will probably know immediately what I'm seeing and why.

I am running the latest update of Chrome on Windows 11. I haven't tried it in Edge but I can if you would like. The reason I found this (and maybe it's related?) is that when I restart my QA in Fibemu, I want to refresh the web page to get a fresh screen.

I hope I fixed it. It turned out to be a bit more complicated than I thought and I don't think I have done the best solution - but it seems to work. I will soon remove the old UI and then it will be easier to to it correctly.
Btw, on the Mac with safari browser it worked - but now I forced them to behave the same and a fix in place...

fixed