From 0b52639d360373db88f7bb88e55dec900890f069 Mon Sep 17 00:00:00 2001 From: Marlene Simondant <msimondant@grandlyon.com> Date: Tue, 25 Oct 2022 16:24:52 +0200 Subject: [PATCH] fix issue #44 --- .../structure-details/structure-details.component.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/app/structure-list/components/structure-details/structure-details.component.ts b/src/app/structure-list/components/structure-details/structure-details.component.ts index 4e55440ae..2fcc65449 100644 --- a/src/app/structure-list/components/structure-details/structure-details.component.ts +++ b/src/app/structure-list/components/structure-details/structure-details.component.ts @@ -404,8 +404,13 @@ export class StructureDetailsComponent implements OnInit { } public goToWebsite(): void { - window.open(this.structure.website, '_blank'); + let url = this.structure.website; + if (!url.startsWith('http')) { + url = 'https://' + url; + } + window.open(url, '_blank'); } + public displayJobEmployer(profile: User): string { return new Utils().getJobEmployer(profile); } -- GitLab