From 14adc3deba803f061542b22190890ce84908e2ac Mon Sep 17 00:00:00 2001 From: Guilhem CARRON <gcarron@grandlyon.com> Date: Wed, 26 Oct 2022 12:01:26 +0000 Subject: [PATCH] Resolve "Voir le site" --- .../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..a1fe87ef8 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,7 +404,12 @@ export class StructureDetailsComponent implements OnInit { } public goToWebsite(): void { - window.open(this.structure.website, '_blank'); + if (!this.structure.website.includes('http')) { + const url = 'https://'.concat(this.structure.website); + window.open(url, '_blank'); + } else { + window.open(this.structure.website, '_blank'); + } } public displayJobEmployer(profile: User): string { return new Utils().getJobEmployer(profile); -- GitLab