summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
Diffstat (limited to 'share')
-rw-r--r--share/www/script/futon.js2
1 files changed, 1 insertions, 1 deletions
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 {