mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
Fix issue with getSearchLink
This commit is contained in:
@@ -354,7 +354,10 @@ export class SearchService implements OnDestroy {
|
||||
* @returns {string} The base path to the search page
|
||||
*/
|
||||
getSearchLink(): string {
|
||||
return '/search';
|
||||
const urlTree = this.router.parseUrl(this.router.url);
|
||||
const g: UrlSegmentGroup = urlTree.root.children[PRIMARY_OUTLET];
|
||||
const searchLink: any = '/' + g.toString();
|
||||
return (searchLink !== '/search' && searchLink !== '/mydspace') ? '/search' : searchLink;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user