Fixed back button behaviour on books edit

As reported in #339
This commit is contained in:
Dan Brown 2017-03-19 08:32:04 +00:00
parent 4499ae84bb
commit 668ce26269
No known key found for this signature in database
GPG Key ID: 46D9F943C24A2EF9

View File

@ -11,6 +11,6 @@
</div>
<div class="form-group">
<a href="{{ back()->getTargetUrl() }}" class="button muted">{{ trans('common.cancel') }}</a>
<a href="{{ isset($book) ? $book->getUrl() : baseUrl('/books') }}" class="button muted">{{ trans('common.cancel') }}</a>
<button type="submit" class="button pos">{{ trans('entities.books_save') }}</button>
</div>