flower
flower copied to clipboard
url_prefix not working properly without trailing slash
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
hey @eleksis can you mark this as closed if its done?