@@ -51,6 +51,9 @@ export class BookmarkListElementComponent extends TagFollowingBaseComponent impl
5151 @Input ( )
5252 isDetailsPage = false ;
5353
54+ @Input ( )
55+ isSearchResultsPage = false ;
56+
5457 @Input ( )
5558 filterText = '' ;
5659
@@ -77,7 +80,7 @@ export class BookmarkListElementComponent extends TagFollowingBaseComponent impl
7780 super ( loginDialog , userDataWatchedTagsStore ) ;
7881
7982 // START force reload on same root - solution taken from https://github.com/angular/angular/issues/13831
80- this . router . routeReuseStrategy . shouldReuseRoute = function ( ) {
83+ this . router . routeReuseStrategy . shouldReuseRoute = function ( ) {
8184 return false ;
8285 }
8386
@@ -198,16 +201,23 @@ export class BookmarkListElementComponent extends TagFollowingBaseComponent impl
198201 this . bookmarkDeleted . emit ( true ) ;
199202 this . publicBookmarksStore . removeBookmarkFromPublicStore ( bookmark ) ;
200203 this . feedStore . removeFromFeedBookmarks ( bookmark ) ;
204+ if ( this . isSearchResultsPage ) {
205+ location . reload ( ) ;
206+ }
201207 } ) ;
202208 } else {
203209 this . personalBookmarksService . deleteBookmark ( bookmark ) . subscribe ( ( ) => {
204- this . bookmarkDeleted . emit ( true ) ;
205- this . publicBookmarksStore . removeBookmarkFromPublicStore ( bookmark ) ;
206- this . userDataStore . removeFromStoresAtDeletion ( bookmark ) ;
207- this . myBookmarksStore . removeFromStoresAtDeletion ( bookmark ) ;
208- this . feedStore . removeFromFeedBookmarks ( bookmark ) ;
209- if ( this . isDetailsPage ) {
210- this . navigateToHomePage ( ) ;
210+ if ( this . isSearchResultsPage ) {
211+ location . reload ( ) ;
212+ } else {
213+ this . bookmarkDeleted . emit ( true ) ;
214+ this . publicBookmarksStore . removeBookmarkFromPublicStore ( bookmark ) ;
215+ this . userDataStore . removeFromStoresAtDeletion ( bookmark ) ;
216+ this . myBookmarksStore . removeFromStoresAtDeletion ( bookmark ) ;
217+ this . feedStore . removeFromFeedBookmarks ( bookmark ) ;
218+ if ( this . isDetailsPage ) {
219+ this . navigateToHomePage ( ) ;
220+ }
211221 }
212222 } ) ;
213223 }
0 commit comments