Closed PromoFaux closed 1 year ago
This is indeed interesting and I am not able to fully reproduce it every time I tried it (it is kind of hit-and-miss).
However, what happens here is:
pi.hole
and this works (can be seen with debug.api = true
in ftl.log
)window.location.replace("/admin");
sending us to 192.168.1.253:8080/admin
instead of pi.hole:8080/admin
for unknown reasonpi.hole
but not for 192.168.1.253
so FTL (rightfully) redirects you to the login page (again)Apparently, window.location
needs an /
at the end to work if there is no query string.
Proposed fix in AdminLTE:
// Ensure the target ends in "/" if there is no query string
if (target.indexOf("?") === -1 && target.slice(-1) !== "/") {
target += "/";
}
@PromoFaux Please try with AdminLTE branch fix/login_redirection
Confirmed that branch fixes this. Moved this issue to adminLTE repo
This issue is stale because it has been open 30 days with no activity. Please comment or update this issue or it will be closed in 5 days.
I can not do update or upgrade ?
Not sure if this is an adminLTE/Docker/FTL thing, but I am observing the following behaviour from time to time.
Any ideas?