From 07e761ad63e781367778c1324e74e6718d8d54af Mon Sep 17 00:00:00 2001 From: John Christopher Anderson Date: Wed, 13 Jan 2010 05:12:18 +0000 Subject: use config info for users db git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@898650 13f79535-47bb-0310-9956-ffa450edef68 --- share/www/script/futon.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'share') diff --git a/share/www/script/futon.js b/share/www/script/futon.js index 33c72318..9b5ba2d0 100644 --- a/share/www/script/futon.js +++ b/share/www/script/futon.js @@ -120,7 +120,7 @@ $.couch.session({ success : function(userCtx) { if (userCtx.name) { - $("#userCtx .username").text(userCtx.name).attr({href : "/_utils/document.html?users/org.couchdb.user%3A"+userCtx.name}); + $("#userCtx .username").text(userCtx.name).attr({href : "/_utils/document.html?"+encodeURIComponent(userCtx.info.user_db)+"/org.couchdb.user%3A"+userCtx.name}); if (userCtx.roles.indexOf("_admin") != -1) { $("#userCtx .loggedinadmin").show(); } else { -- cgit v1.2.3