Flexget / webui

The FlexGet Web UI
MIT License
43 stars 18 forks source link

Web UI v2 does not respect web_server.base_url configuration option #24

Closed adamrothman closed 4 years ago

adamrothman commented 5 years ago

Expected behaviour:

Asset references generated by FlexGet UI v2 should respect web_server.base_url configuration option.

Actual behaviour:

Asset references generated by FlexGet UI v2 all begin with /v2, regardless of the value of the web_server.base_url configuration option.

Steps to reproduce:

  1. Enable Web UI v2 with a non-default base_url configuration option, e.g. /flexget.
  2. Open web browser, and open developer tools.
  3. Navigate to /flexget/v2/, which appears as a blank page.
  4. Observe 404 errors for requests to paths like /v2/assets/manifest.dd611d6a01d922d6dc07.js (which should be /flexget/v2/assets/manifest.dd611d6a01d922d6dc07.js).

Config:

Must include at least this, the rest doesn't matter.

web_server:
  web_ui: yes
  base_url: /flexget
  run_v2: yes

Log:

None.

Additional information:

kristenmills commented 4 years ago

43 and Flexget/Flexget#2518 will fix this.