Error pages: only redirect on 404

This commit is contained in:
fipwmaqzufheoxq92ebc 2020-08-27 08:36:51 +02:00
parent b242676488
commit 6bf19f493f
3 changed files with 11 additions and 2 deletions

View File

@ -3,7 +3,6 @@
@section('title', $__t('You are not allowed to view this page!'))
@section('content')
<meta http-equiv="refresh" content="5;url=/">
<div class="row">
<div class="col-xs-12 col-md-6 text-center">
<h2 class="title">@yield('title')</h2>

View File

@ -1,3 +1,14 @@
@extends('errors.base')
@section('title', $__t('Page not found'))
@section('content')
<meta http-equiv="refresh" content="5;url=/">
<div class="row">
<div class="col-xs-12 col-md-6">
<h2 class="title">@yield('title')</h2>
<div>
{!! nl2br(e($exception->getTraceAsString())) !!}
</div>
</div>
</div>
@stop

View File

@ -1,7 +1,6 @@
@extends('layout.default')
@section('content')
<meta http-equiv="refresh" content="5;url=/">
<div class="row">
<div class="col-xs-12 col-md-6">
<h2 class="title">@yield('title')</h2>