[Eosc Explore | develop]: home.component.ts: When beta environment, redirect to beta eosc.
This commit is contained in:
parent
51a837d8be
commit
8bd6fafbdd
|
@ -1,6 +1,7 @@
|
||||||
import {Component, Inject} from "@angular/core";
|
import {Component, Inject} from "@angular/core";
|
||||||
import {DOCUMENT} from "@angular/common";
|
import {DOCUMENT} from "@angular/common";
|
||||||
import {Meta, Title} from "@angular/platform-browser";
|
import {Meta, Title} from "@angular/platform-browser";
|
||||||
|
import {properties} from "../../environments/environment";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'home',
|
selector: 'home',
|
||||||
|
@ -23,7 +24,7 @@ export class HomeComponent {
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
// this.window.location.href = '...';
|
// this.window.location.href = '...';
|
||||||
if (typeof document !== 'undefined') {
|
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
|
Loading…
Reference in New Issue