From e81bb3fe0837c0e891fe13f131f65793913306f7 Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 22 Aug 2017 18:18:48 +0200 Subject: [PATCH] Fix profile link in the userlist --- www/common/toolbar3.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/www/common/toolbar3.js b/www/common/toolbar3.js index 50137c586..9ded9b136 100644 --- a/www/common/toolbar3.js +++ b/www/common/toolbar3.js @@ -161,6 +161,7 @@ define([ var metadataMgr = config.metadataMgr; var userData = metadataMgr.getMetadata().users; var viewers = metadataMgr.getViewers(); + var origin = config.metadataMgr.getPrivateData().origin; // If we are using old pads (readonly unavailable), only editing users are in userList. // With new pads, we also have readonly users in userList, so we have to intersect with @@ -225,7 +226,7 @@ define([ if (data.profile) { $span.addClass('clickable'); $span.click(function () { - window.open('/profile/#' + data.profile); + window.open(origin+'/profile/#' + data.profile); }); } if (data.avatar && avatars[data.avatar]) {