From d13ad40a538709ae93dd4ca38da8f41b6be51775 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 22 Jul 2019 17:21:40 +0200 Subject: profile link --- public/assets/js/lib/views/profile/profile.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'public/assets/js/lib/views/profile/profile.js') diff --git a/public/assets/js/lib/views/profile/profile.js b/public/assets/js/lib/views/profile/profile.js index 46ade8e..77ec121 100644 --- a/public/assets/js/lib/views/profile/profile.js +++ b/public/assets/js/lib/views/profile/profile.js @@ -77,10 +77,14 @@ var ProfileView = View.extend({ } } if (user.website) { - var website = sanitizeHTML(user.website) + var website = user.website + var website_url = user.website + if (website_url.indexOf('http') !== 0) { + website_url = 'https://' + website_url + } fields.push([ 'Website', - '' + sanitizeHTML(website) + '' + '' + sanitizeHTML(website) + '' ]) } -- cgit v1.2.3-70-g09d2