A free open source IT asset/license management system
Improve back button behavior
Marcus Mooree390a95bd331
diff --git a/resources/views/reports/custom.blade.php b/resources/views/reports/custom.blade.phpindex 40261e84b6..737c51a4b9 100644--- a/resources/views/reports/custom.blade.php+++ b/resources/views/reports/custom.blade.php@@ -7,8 +7,19 @@@stop@section('header_right')-<a href="{{ URL::previous() }}" class="btn btn-primary pull-right">- {{ trans('general.back') }}</a>+ @if (request()->routeIs('report-templates.edit'))+ <a href="{{ route('report-templates.show', $template) }}" class="btn btn-primary pull-right">+ {{ trans('general.back') }}+ </a>+ @elseif(request()->routeIs('report-templates.show'))+ <a href="{{ route('reports/custom') }}" class="btn btn-primary pull-right">+ {{ trans('general.back') }}+ </a>+ @else+ <a href="{{ URL::previous() }}" class="btn btn-primary pull-right">+ {{ trans('general.back') }}+ </a>+ @endif@stop