diff --git a/Classes/Controller/BookmarkController.php b/Classes/Controller/BookmarkController.php index 0f4cc4d..75357da 100644 --- a/Classes/Controller/BookmarkController.php +++ b/Classes/Controller/BookmarkController.php @@ -87,7 +87,9 @@ class BookmarkController extends AbstractController $user = $this->getCurrentUser(); $this->bookmarkRepository->removeByUserTablenameObjectUid($user['uid'], $tablename, $objectUid); - $this->forward('personalList'); + + $this->redirectToUri($this->uriBuilder->reset()->buildFrontendUri()); + } diff --git a/Classes/Domain/Repository/BookmarkRepository.php b/Classes/Domain/Repository/BookmarkRepository.php index a3da679..4021c2e 100644 --- a/Classes/Domain/Repository/BookmarkRepository.php +++ b/Classes/Domain/Repository/BookmarkRepository.php @@ -48,6 +48,7 @@ class BookmarkRepository extends Repository $this->remove($obj); } + $this->persistenceManager->persistAll(); } diff --git a/Resources/Private/Templates/Bookmark/PersonalList.html b/Resources/Private/Templates/Bookmark/PersonalList.html index 97526f7..035229c 100644 --- a/Resources/Private/Templates/Bookmark/PersonalList.html +++ b/Resources/Private/Templates/Bookmark/PersonalList.html @@ -9,8 +9,8 @@