zonemaster / Zonemaster-GUI--ARCHIVED-OLD-VERSION-NOT-TO-BE-USED

Archived old implementation of the the Zonemaster Web GUI - not to be used
Other
3 stars 11 forks source link

Broken style URL in the no-JS interface #187

Closed helb closed 6 years ago

helb commented 7 years ago

The /nojs page (at zonemaster.net & zonemaster.se) tries to fetch a css file from localhost:

<link rel="stylesheet" href="http://localhost:81/css/nojs_style.css" />

(so my laptop in this case, with nothing listening at port 81)

Looking at the source (nojs_main_view.tt), it seems that request.uri_base gets replaced with http://localhost:81:

<link rel="stylesheet" href="<% request.uri_base %>/css/nojs_style.css" />

This might be due to reverse proxy not passing the request info down to the Perl server properly. Just guessing, i'm not familiar with your setup.

However, it's an easy fix – just drop the variable altogether and let the browser fetch from /css/nojs_style.css:

<link rel="stylesheet" href="/css/nojs_style.css" />