[Eosc Explore | develop]: home.component.ts: When beta environment, redirect to beta eosc.

This commit is contained in:
Konstantina Galouni 2023-04-26 13:18:18 +03:00
parent 51a837d8be
commit 8bd6fafbdd
2 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,7 @@
import {Component, Inject} from "@angular/core";
import {DOCUMENT} from "@angular/common";
import {Meta, Title} from "@angular/platform-browser";
import {properties} from "../../environments/environment";
@Component({
selector: 'home',
@ -23,7 +24,7 @@ export class HomeComponent {
ngOnInit() {
// this.window.location.href = '...';
if (typeof document !== 'undefined') {
this.window.open('https://search.eosc-portal.eu/search/all?q=*', "_self");
this.window.open('https://'+(properties.environment == "beta" ? "beta." : "")+'search.marketplace.eosc-portal.eu/search/all?q=*', "_self");
}
}
}

@ -1 +1 @@
Subproject commit c547dfa9453b9a68befb41f447d8c410eb7aea2c
Subproject commit 058d30f4c1cddb8c5b5e967393aee09847ef2d83