mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
[ACA-1992] Keep favorite libraries navigation under same path (#1474)
* [ACA-1992] Keep favorite libraries navigation under same path * Fix unit test
This commit is contained in:
@@ -144,7 +144,10 @@ describe('FavoriteLibrariesComponent', () => {
|
||||
spyOn(router, 'navigate').and.stub();
|
||||
component.navigateTo({ entry: { guid: 'guid' } } as any);
|
||||
|
||||
expect(router.navigate).toHaveBeenCalledWith(['libraries', 'libraryId']);
|
||||
expect(router.navigate).toHaveBeenCalledWith([
|
||||
'favorite/libraries',
|
||||
'libraryId'
|
||||
]);
|
||||
});
|
||||
});
|
||||
|
||||
|
@@ -82,7 +82,9 @@ export class FavoriteLibrariesComponent extends PageComponent
|
||||
|
||||
navigateTo(node: SiteEntry) {
|
||||
if (node && node.entry && node.entry.guid) {
|
||||
this.store.dispatch(new NavigateLibraryAction(node.entry.guid));
|
||||
this.store.dispatch(
|
||||
new NavigateLibraryAction(node.entry.guid, 'favorite/libraries')
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user