Skip to content

NOW MANAGED ON CODEBERG

Fixed back button behaviour on books edit

Dan Brown668ce262690d
diff --git a/resources/views/books/form.blade.php b/resources/views/books/form.blade.php
index 514abf42c..b1484d129 100644
--- a/resources/views/books/form.blade.php
+++ b/resources/views/books/form.blade.php
@@ -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>
\ No newline at end of file