senzing-garage/entity-search-web-app

fix stream loading path issue when running under VIRTUAL_DIR path

Closed this issue · 0 comments

Describe the bug
When running the app under a virtual dir configuration ie: http://mypubliccloud.com/app instead of root(http://myappserver.com:8251) the code is not fully aware of the virtual dir and will instead try to open sockets up to http://mypubliccloud.com instead of http://mypubliccloud.com/app

To Reproduce

  1. add virtual directory env var SENZING_WEB_SERVER_VIRTUAL_PATH: /app
  2. Start up server
  3. go to /app/admin
  4. inspect socket request
  5. it will say ws://americium.local:8255/load-queue/bulk-data/records instead of ws://americium.local:8255/app/load-queue/bulk-data/records

Expected behavior
It should say ws://americium.local:8255/app/load-queue/bulk-data/records instead of ws://americium.local:8255/load-queue/bulk-data/records