From 9a8c496a787bdef6eb0af2ded243d2bb209503d5 Mon Sep 17 00:00:00 2001 From: John Christopher Anderson Date: Thu, 24 Jun 2010 16:47:18 +0000 Subject: add $.couch.urlPrefix to link to users db. closes COUCHDB-742 git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@957619 13f79535-47bb-0310-9956-ffa450edef68 --- share/www/script/futon.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/www/script/futon.js b/share/www/script/futon.js index 2c29a5eb..2a4ad8ad 100644 --- a/share/www/script/futon.js +++ b/share/www/script/futon.js @@ -140,7 +140,7 @@ function $$(node) { var userCtx = r.userCtx; $$("#userCtx").userCtx = userCtx; if (userCtx.name) { - $("#userCtx .name").text(userCtx.name).attr({href : "/_utils/document.html?"+encodeURIComponent(r.info.authentication_db)+"/org.couchdb.user%3A"+encodeURIComponent(userCtx.name)}); + $("#userCtx .name").text(userCtx.name).attr({href : $.couch.urlPrefix + "/_utils/document.html?"+encodeURIComponent(r.info.authentication_db)+"/org.couchdb.user%3A"+encodeURIComponent(userCtx.name)}); if (userCtx.roles.indexOf("_admin") != -1) { $("#userCtx .loggedinadmin").show(); } else { -- cgit v1.2.3