diff --git a/searchPages/find/searchAll.component.ts b/searchPages/find/searchAll.component.ts index e399f68e..67b16706 100644 --- a/searchPages/find/searchAll.component.ts +++ b/searchPages/find/searchAll.component.ts @@ -219,7 +219,7 @@ export class SearchAllComponent { this.activeEntity = ((["result","projects","organizations","datasources","services"]).indexOf(params["active"])!= -1)?params["active"]:this.getDefaultEntityToShow(); }else if (this.activeEntity !=null && (!params["active"] || params["active"].length ==0)){ this.parameters["active"]=this.activeEntity; - if(location.search && location.search.indexOf("active=") == -1){ + if((typeof document !== 'undefined') && location.search && location.search.indexOf("active=") == -1){ this.location.go(location.pathname, ((location.search)?(location.search+"&"):("?")) +"active=" + this.activeEntity); } }