mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-08 18:44:14 +00:00
Merge branch 'master' into w2p-62589_Item-mapper-update
This commit is contained in:
@@ -354,7 +354,10 @@ export class SearchService implements OnDestroy {
|
|||||||
* @returns {string} The base path to the search page
|
* @returns {string} The base path to the search page
|
||||||
*/
|
*/
|
||||||
getSearchLink(): string {
|
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