Fixed back button behaviour on books edit
As reported in #339
Showing
1 changed file
with
1 additions
and
1 deletions
| ... | @@ -11,6 +11,6 @@ | ... | @@ -11,6 +11,6 @@ |
| 11 | </div> | 11 | </div> |
| 12 | 12 | ||
| 13 | <div class="form-group"> | 13 | <div class="form-group"> |
| 14 | - <a href="{{ back()->getTargetUrl() }}" class="button muted">{{ trans('common.cancel') }}</a> | 14 | + <a href="{{ isset($book) ? $book->getUrl() : baseUrl('/books') }}" class="button muted">{{ trans('common.cancel') }}</a> |
| 15 | <button type="submit" class="button pos">{{ trans('entities.books_save') }}</button> | 15 | <button type="submit" class="button pos">{{ trans('entities.books_save') }}</button> |
| 16 | </div> | 16 | </div> |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or sign in to post a comment