Website for storing flight information, rendering paths on a zoomable world map and calculating statistics, with plenty of free airline, airport and route data.
Possible solutions: we can either add redirects/rewrites to img for each of user/img, trip/img, airport/img, and airline/img, or hack the minified JS to make the paths absolute.
I spent some time trying to hack this into the nginx config, but this is not working for reasons I don't understand. Fixes or better ideas?
If you browse to a subpage like https://openflights.org/airport/SIN or https://openflights.org/user/jpatokal, the images for the OpenLayers controls don't load properly:
The paths appear to be hardcoded into
js/OpenLayers.js
as relative paths (img/north-mini.png
etc), so it's trying to load things like https://openflights.org/airport/img/zoom-minus-mini.png and failing.Possible solutions: we can either add redirects/rewrites to
img
for each ofuser/img
,trip/img
,airport/img
, andairline/img
, or hack the minified JS to make the paths absolute.I spent some time trying to hack this into the nginx config, but this is not working for reasons I don't understand. Fixes or better ideas?