Skip to content
Snippets Groups Projects
Commit 14adc3de authored by Guilhem CARRON's avatar Guilhem CARRON
Browse files

Resolve "Voir le site"

parent 8ffd2bda
No related branches found
No related tags found
4 merge requests!418V2.1.0,!400V2.0,!348Resolve "Voir le site",!230V2.0
......@@ -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);
......
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