Skip to content

Commit

Permalink
Merge c956c21 into 50c6cd4
Browse files Browse the repository at this point in the history
  • Loading branch information
atarix83 committed Jun 8, 2019
2 parents 50c6cd4 + c956c21 commit a816a50
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/app/+search-page/search-service/search.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/**
Expand Down

0 comments on commit a816a50

Please sign in to comment.