aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Fripost/Panel
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Fripost/Panel')
-rw-r--r--lib/Fripost/Panel/Login.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Fripost/Panel/Login.pm b/lib/Fripost/Panel/Login.pm
index 810f9e1..ccb4ca7 100644
--- a/lib/Fripost/Panel/Login.pm
+++ b/lib/Fripost/Panel/Login.pm
@@ -188,7 +188,7 @@ sub logout : Runmode {
$self->query->delete('a') if (defined $self->query->param('a')) and
$self->query->param('a') eq 'logout';
- return $self->redirect($self->query->self_url);
+ return $self->redirect( ($ENV{SCRIPT_NAME} // $self->query->url).'/' );
}
# This is the error Run Mode.