Skip to content
Snippets Groups Projects
Commit cb4c062a authored by Art Lowel's avatar Art Lowel
Browse files

fixed an issue with the AoT build

parent 2d0a43f9
Branches
Tags
No related merge requests found
......@@ -7,7 +7,7 @@
<ds-search-form id="search-form"
[query]="(searchOptions$ | async)?.query"
[scope]="(searchOptions$ | async)?.scope"
[currentUrl]="service.getSearchLink()"
[currentUrl]="getSearchLink()"
[scopes]="(scopeListRD$ | async)?.payload?.page">
</ds-search-form>
<div class="row">
......
......@@ -77,4 +77,8 @@ export class SearchPageComponent implements OnInit {
public isSidebarCollapsed(): Observable<boolean> {
return this.sidebarService.isCollapsed;
}
public getSearchLink(): string {
return this.service.getSearchLink();
}
}
......@@ -236,7 +236,7 @@ export class SearchService implements OnDestroy {
this.router.navigate([this.getSearchLink()], navigationExtras);
}
getSearchLink() {
getSearchLink(): string {
const urlTree = this.router.parseUrl(this.router.url);
const g: UrlSegmentGroup = urlTree.root.children[PRIMARY_OUTLET];
return '/' + g.toString();
......
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