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;