flower icon indicating copy to clipboard operation
flower copied to clipboard

url_prefix not working properly without trailing slash

Open eleksis opened this issue 2 years ago • 1 comments

Describe the bug When using url_prefix (eg. flower), if i visit http://example.com/flower index page does not load properly (message: Error, page not found). Css & js files load, all other dashboard pages work and visiting http://example.com/flower/ also works.

To Reproduce Start service in docker with: flower --address=0.0.0.0 --url_prefix=flower --port=5555

Apache reverse proxy config:

    <Location /flower>
        ProxyPass "http://flowercontainer:5555/flower"
        ProxyPassReverse "http://flowercontainer:5555/flower"
        ProxyPreserveHost On
    </Location>

Expected Behavior Ideally it should work with and without trailing slash when visiting url.

Note: If i add trailing slash to apache ProxyPass definitions, index html loads properly, but all other pages do not! (same message)

System information flower version 1.0.0, python 3.10.4

eleksis avatar Apr 19 '22 10:04 eleksis

hey @eleksis can you mark this as closed if its done?

nischalj10 avatar Sep 21 '23 02:09 nischalj10