From 138f9a436672bc1665ee167306b3e7078351a3bf Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Antoine=20Dupr=C3=A9?= <ant.dupre@gmail.com>
Date: Wed, 17 May 2023 18:04:46 +0200
Subject: [PATCH] fix user organisation link target _blank

---
 src/widjets-display-user-tzcld.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/widjets-display-user-tzcld.js b/src/widjets-display-user-tzcld.js
index e9bc81c..620c2b6 100644
--- a/src/widjets-display-user-tzcld.js
+++ b/src/widjets-display-user-tzcld.js
@@ -130,7 +130,7 @@ import("./utils.js").then((utils) => {
           for(let job of tzcldprofile.jobs) {
               if(await job.organisation !="") {
                   if(await job.link !="") {
-                      render +=  `<h3 class="position text-medium padding-bottom-large whitespace-normal">${await job.position} à <a class="link text-top" href="${await job.link}">${await job.organisation}</a></h3>`;
+                      render +=  `<h3 class="position text-medium padding-bottom-large whitespace-normal">${await job.position} à <a class="link text-top" target="_blank" href="${await job.link}">${await job.organisation}</a></h3>`;
                   } else {
                       render +=  `<h3 class="position text-medium padding-bottom-large whitespace-normal">${await job.position} à ${await job.organisation}</h3>`;
                   }
@@ -196,7 +196,7 @@ import("./utils.js").then((utils) => {
           for(let job of tzcldprofile.jobs) {
               if(await job.organisation !="") {
                   if(await job.link !="") {
-                      render +=  `<h4 class="position text-medium padding-bottom-large">${await job.position} à <a class="link text-top" href="${await job.link}">${await job.organisation}</a></h4>`;
+                      render +=  `<h4 class="position text-medium padding-bottom-large">${await job.position} à <a class="link text-top" target="_blank" href="${await job.link}">${await job.organisation}</a></h4>`;
                   } else {
                       render +=  `<h4 class="position text-medium padding-bottom-large">${await job.position} à ${await job.organisation}</h4>`;
                   }
-- 
GitLab