Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

url-prefix is not picked up in the footer links #1316

Closed
deepchatterjeeligo opened this issue Aug 7, 2023 · 1 comment
Closed

url-prefix is not picked up in the footer links #1316

deepchatterjeeligo opened this issue Aug 7, 2023 · 1 comment

Comments

@deepchatterjeeligo
Copy link

deepchatterjeeligo commented Aug 7, 2023

Describe the bug
image

The links in the footer lead to 404 when launching flower with --url-prefix.

To Reproduce
Steps to reproduce the behavior:

  1. Launch flower with the --url-prefix. Here proj is any representative celery project.
celery -A proj flower --url-prefix=flower

Putting a trailing slash (as mentioned in #1207) does not help. Using --url-prefix=flower/ has the same behavior.

This starts flower at http://0.0.0.0:5555/flower/
2. Launch a few tasks from the celery project, so that there are non-zero processed tasks
3. Click on (or hover over) the number of processed tasks (in the above case, the value 10)
4. This redirects to http://0.0.0.0:5555/tasks and gives a 404 (screenshot below).

Expected behavior
It should have redirected to http://0.0.0.0:5555/flower/tasks. The url-prefix is missing.

Screenshots
image

System information
Output of python -c 'from flower.utils import bugreport; print(bugreport())' command

flower   -> flower:2.0.0 tornado:6.3.2 humanize:4.7.0
software -> celery:5.2.7 (dawn-chorus) kombu:5.2.4 py:3.10.8
            billiard:3.6.4.0 py-amqp:5.1.1
platform -> system:Linux arch:64bit, ELF
            kernel version:5.15.0-78-generic imp:CPython
loader   -> celery.loaders.app.AppLoader
settings -> transport:amqp results:disabled

deprecated_settings: None
@mher
Copy link
Owner

mher commented Aug 7, 2023

Fixed by #1297

@mher mher closed this as completed Aug 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants