diff --git a/front/src/WebRtc/HtmlUtils.ts b/front/src/WebRtc/HtmlUtils.ts
index 86f38216..942e553f 100644
--- a/front/src/WebRtc/HtmlUtils.ts
+++ b/front/src/WebRtc/HtmlUtils.ts
@@ -35,7 +35,12 @@ export class HtmlUtils {
const urlRegex = /(https?:\/\/[^\s]+)/g;
text = HtmlUtils.escapeHtml(text);
return text.replace(urlRegex, (url: string) => {
- return '' + url + '';
+ const link = document.createElement('a');
+ link.href = url;
+ link.target = "_blank";
+ const text = document.createTextNode(url);
+ link.appendChild(text);
+ return link.outerHTML;
});
}
diff --git a/front/style/style.scss b/front/style/style.scss
index f43fb240..672950e2 100644
--- a/front/style/style.scss
+++ b/front/style/style.scss
@@ -1077,6 +1077,10 @@ div.modal-report-user{
color: white;
}
+.discussion .messages .message p a:visited{
+ color: white;
+}
+
.discussion .send-message{
position: absolute;
bottom: 45px;