Why 302 redirect to /admin?
See original GitHub issueHi, can I ask why airflow redirects from /
to /admin
if EVERY navigation is anchored at /admin/something
?
I am asking this because I’m in the process of integrating airflow into our current stack and it’s annoying for proxying purposes to have that, not to mention the /admin/admin/admin/css/bootstrap/admin.css
request that is made from the /admin/index.html
.
Is it possible to remove the first redirect to /admin
and leave airflow responding solely on /
?
Thank you!
Edit: probably related to https://github.com/airbnb/airflow/issues/726
Issue Analytics
- State:
- Created 8 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
How To Fix the HTTP 302 Error (5 Methods) - Kinsta
HTTP 302 codes are useful to temporarily redirect website users to another URL. ... The Plugins page in the WordPress admin dashboard.
Read more >wp-admin 302 redirects - WordPress Stack Exchange
Mainly, I can't get into wp-admin (or wp-login.php) as it redirects with two 301 redirects and then multiple 302 redirects.
Read more >Redirecting to Admin page - WordPress.org
And this redirection is being cached by the browser, the request status code is 302. After successful login when the user again hits...
Read more >django - Redirect to /admin/login/ results in 302 - Stack Overflow
So /admin/login should be an exception where user can get when he is not logged in.
Read more >2.2.5: Admin page stuck in 301/302 redirect loop when HTTPS ...
Admin is stuck in 301/302 redirect loop; I can see in the headers that the SSL certificate is recognised as valid.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Well Airflow is built on top of flask-admin and leverages its templates and views. I’m unclear on where the /admin/admin/admin stuff is coming from, but it shouldn’t occur.
It may be sound to port the UI to
Flask App Builder
or even Django (much more of an undertaking) to get authentication and granular permissions / role management. I can’t justify spending the time at this point though.If anyone can spare an intern, that’s a pretty scoped out project with little need for guidance.
actually the
requirements.txt
doesn’t have much things pinned, I should really remove it from there.The proper way to install is using the bracket notation as in
pip install airflow[hive]
and specify the subpackages you need.