From 057301b0d83d14d97a8f8210287d4e4840980d14 Mon Sep 17 00:00:00 2001 From: Gerhard Jungwirth Date: Thu, 8 Aug 2013 10:01:52 +0200 Subject: [PATCH] Handle the case, the user logs out twice This was throwing an exception because of a missing target --- lib/NGCP/Panel/Controller/Root.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/NGCP/Panel/Controller/Root.pm b/lib/NGCP/Panel/Controller/Root.pm index d86a40a9fd..c9245323f5 100644 --- a/lib/NGCP/Panel/Controller/Root.pm +++ b/lib/NGCP/Panel/Controller/Root.pm @@ -40,6 +40,8 @@ sub auto :Private { if($c->request->method eq 'GET') { if($c->request->uri !~ /\/logout$/) { $target = $c->request->uri; + } else { + $target = $c->uri_for("/dashboard"); } } else { $target = $c->request->headers->referer;