diff --git a/lib/NGCP/Panel/Controller/Root.pm b/lib/NGCP/Panel/Controller/Root.pm index 00ecb65506..a56a83ab44 100644 --- a/lib/NGCP/Panel/Controller/Root.pm +++ b/lib/NGCP/Panel/Controller/Root.pm @@ -99,8 +99,7 @@ Standard 404 error page sub default :Path { my ( $self, $c ) = @_; - $c->response->body( 'Page not found' ); - $c->response->status(404); + $c->detach( '/error_page' ); } =head2 end @@ -161,6 +160,14 @@ sub ajax_process :Private { $c->stash(sEcho => $sEcho); } +sub error_page :Private { + my ($self,$c) = @_; + + $c->stash(template => 'error_page.tt'); + #$c->response->body( 'Page not found' ); + $c->response->status(404); +} + =head1 AUTHOR Andreas Granig,,, diff --git a/share/templates/error_page.tt b/share/templates/error_page.tt new file mode 100644 index 0000000000..ef1d17b503 --- /dev/null +++ b/share/templates/error_page.tt @@ -0,0 +1,37 @@ +