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
the server hosting hosts other apps, so I have nginx configured to serve the app at /mainsail, instead of /. But this doesn't work, as throughout the HTML, JS, and CSS, there's hardcoded absolute paths assuming the app is hosted at /. I have this awful hack in my nginx config to make it temporarily sorta work:
but it's not great, and even with this ugly workaround, it's still not perfect, something in the JS is using the history API to overwrite the URL bar, resetting the path back to /.
Just one example of the problem, note the leading slash:
Mainsail Version:
2.5.1
Browser:
Firefox
Device:
Laptop
Operating System:
Linux
What happened?
the server hosting hosts other apps, so I have nginx configured to serve the app at
/mainsail
, instead of/
. But this doesn't work, as throughout the HTML, JS, and CSS, there's hardcoded absolute paths assuming the app is hosted at/
. I have this awful hack in my nginx config to make it temporarily sorta work:but it's not great, and even with this ugly workaround, it's still not perfect, something in the JS is using the history API to overwrite the URL bar, resetting the path back to
/
.Just one example of the problem, note the leading slash:
mainsail/index.html
Line 22 in 370d7d4
What did you expect to happen instead?
I expected the app to use relative URLs
How to reproduce this bug?
Install mainsail to a subdirectory of nginx's root directory
Additional information:
No response
The text was updated successfully, but these errors were encountered: