kamilsss655 / ESPRI

ESPRI (ESP Radio Interface) project providing extended functionalities to ham radios
Apache License 2.0
80 stars 3 forks source link

[BUG] Webserver, page refresh error #34

Open goopaga opened 1 month ago

goopaga commented 1 month ago

Describe the bug

Error when refreshing any page of the web interface (except the main /index.html).

To Reproduce

Steps to reproduce the behavior: Refresh the page visualization (F5 on Windows or "drag down" on Android)

Expected behavior

Page refresh

Pictures/video

Screenshot_2024-05-02-15-36-58-170_com.android.chrome.jpg

Details

Additional context

kamilsss655 commented 1 month ago

Yea, this is because the web panel is a SPA (https://en.wikipedia.org/wiki/Single-page_application).

To prevent this webserver would have to redirect 404 to index page, and I prefer to keep the 404 page for now.

Later on the SPA page could parse some param that the user came from 404 page, but the project is not at the stage where this would be considered important.