We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 14ca053 commit 1a3bbdfCopy full SHA for 1a3bbdf
1 file changed
crates/rustmail_panel/src/pages/panel.rs
@@ -58,10 +58,7 @@ pub fn panel() -> Html {
58
if matches!(auth, Some(false)) {
59
let win = window();
60
if let Ok(pathname) = win.location().pathname() {
61
- let redirect = urlencoding::encode(&pathname);
62
- let _ = win
63
- .location()
64
- .set_href(&format!("/api/auth/login?redirect={}", redirect));
+ let _ = win.location().set_href("/error?message=Access+Denied");
65
} else {
66
let _ = win.location().set_href("/api/auth/login");
67
}
0 commit comments