aboutsummaryrefslogtreecommitdiffstats
path: root/src/auth.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/auth.rs')
-rw-r--r--src/auth.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/auth.rs b/src/auth.rs
index dbb501d..faf967c 100644
--- a/src/auth.rs
+++ b/src/auth.rs
@@ -147,7 +147,7 @@ fn build_unauthorized_response(
}
let return_path = match &req.state().random_route {
Some(random_route) => format!("/{}", random_route),
- None => req.path().to_string(),
+ None => "/".to_string(),
};
renderer::render_error(