Skip to content
Snippets Groups Projects
Unverified Commit e179596a authored by Tim Donohue's avatar Tim Donohue Committed by GitHub
Browse files

Merge pull request #424 from 4Science/DSpace#423

Fix issue with getSearchLink
parents 50c6cd4b c956c212
Branches
Tags
No related merge requests found
......@@ -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;
}
/**
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment