Skip to content
Snippets Groups Projects
Commit 6b0d66bd authored by Marlène SIMONDANT's avatar Marlène SIMONDANT
Browse files

fix issue #44

parent fe8b8d4a
No related branches found
No related tags found
No related merge requests found
...@@ -404,8 +404,13 @@ export class StructureDetailsComponent implements OnInit { ...@@ -404,8 +404,13 @@ export class StructureDetailsComponent implements OnInit {
} }
public goToWebsite(): void { public goToWebsite(): void {
window.open(this.structure.website, '_blank'); let url = this.structure.website;
if (!url.startsWith('https')) {
url = 'https://' + url;
}
window.open(url, '_blank');
} }
public displayJobEmployer(profile: User): string { public displayJobEmployer(profile: User): string {
return new Utils().getJobEmployer(profile); return new Utils().getJobEmployer(profile);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment