Hi,
I've modified your application to better suit my homelab. I only use one domain, so all web services are served using subpath eg. my.lab.home/lcs/, my.lab.home/projectx/. As far as I understand the problem with such setup, it's quite easy to rewrite requests so that backend application doesn't have to know about subpath, but because it doesn't know about subpath, ajax requests and all links inside application begin with / - thus the need to modify the code.
While I have some (very little) programming knowledge I don't know absolutely anything about Go. If you decide that my code is usable please let me know and I'll create a merge request.
I did try to test it as best as I could and I think that I didn't bork core functionality. (I did tests with and without using the feature I've added)
main...wzajas:local-content-share:main
Hi,
I've modified your application to better suit my homelab. I only use one domain, so all web services are served using subpath eg. my.lab.home/lcs/, my.lab.home/projectx/. As far as I understand the problem with such setup, it's quite easy to rewrite requests so that backend application doesn't have to know about subpath, but because it doesn't know about subpath, ajax requests and all links inside application begin with / - thus the need to modify the code.
While I have some (very little) programming knowledge I don't know absolutely anything about Go. If you decide that my code is usable please let me know and I'll create a merge request.
I did try to test it as best as I could and I think that I didn't bork core functionality. (I did tests with and without using the feature I've added)
main...wzajas:local-content-share:main