You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem
If the page isn't hosted at the root of the server (behind reverse proxy, say at jetson.local/flight-review) the upload path is incorrect.
Solutions
I'm not sure the best way to solve this. I tried using window.location.pathname but this doesn't work if you navigate using the Upload href on the top toolbar, since the path will then be jetson.local/flight-review/upload
Questions
Should we load the config.ini into js so we can simply preface /upload with the domain_name?
Can we leverage the python upload.py rather than maintain a js and python upload?
Or can this be solved within nginx by remapping request paths?
The text was updated successfully, but these errors were encountered:
flight_review/app/plot_app/static/js/upload.js
Lines 100 to 102 in a16c3e7
Problem
If the page isn't hosted at the root of the server (behind reverse proxy, say at jetson.local/flight-review) the upload path is incorrect.
Solutions
I'm not sure the best way to solve this. I tried using
window.location.pathname
but this doesn't work if you navigate using theUpload
href on the top toolbar, since the path will then be jetson.local/flight-review/uploadQuestions
The text was updated successfully, but these errors were encountered: