zonemaster-gui icon indicating copy to clipboard operation
zonemaster-gui copied to clipboard

GUI returns HTTP code 200 when 404 is expected

Open matsduf opened this issue 1 year ago • 3 comments

If running https://zonemaster.net/en/fsdfdsfs the page says "Error 404" but the HTTP result code is 200.

matsduf avatar Sep 20 '23 09:09 matsduf

Should this really be handled by the application? Seems like something that should be handled in the web server instead? I suggest having language specific html-files for this that the web server could redirect to e.g in each language folder there will be a 404.html file. This also gives the option to modify the information in the files, like adding links to History -1 or the startpage.

rhedman avatar Sep 20 '23 10:09 rhedman

As the routing is done by the application there is no way on doing that on the web server with the current architecture.

We would need to remove angular for that.

hannaeko avatar Oct 24 '23 10:10 hannaeko

As the routing is done by the application there is no way on doing that on the web server with the current architecture.

We would need to remove angular for that.

Another good reason to ditch Angular then :)

rhedman avatar Oct 24 '23 10:10 rhedman