diff --git a/public/templates/account.tpl b/public/templates/account.tpl
index e371c02d3a..1fad9dd15a 100644
--- a/public/templates/account.tpl
+++ b/public/templates/account.tpl
@@ -28,11 +28,11 @@
reputation
- {user.reputation}
+ {user.reputation}
posts
- {user.postcount}
+ {user.postcount}
@@ -47,6 +47,20 @@
\ No newline at end of file
diff --git a/public/templates/users.tpl b/public/templates/users.tpl
index e782b5a8d9..826c1be78e 100644
--- a/public/templates/users.tpl
+++ b/public/templates/users.tpl
@@ -11,15 +11,35 @@
{users.username}
- {users.reputation}
+ {users.reputation}
- {users.postcount}
+ {users.postcount}
-
\ No newline at end of file
+
+
+
\ No newline at end of file
diff --git a/src/webserver.js b/src/webserver.js
index 23e0ec343e..a006e2ffd3 100644
--- a/src/webserver.js
+++ b/src/webserver.js
@@ -436,7 +436,8 @@ passport.deserializeUser(function(uid, done) {
user.getUserData(uid, function(data) {
if(data) {
- res.send(templates['header'] + '' + templates['footer']);
+ //res.send(templates['header'] + '' + templates['footer']);
+ res.send(templates['header'] + create_route('users/'+data.username,'users') + templates['footer']);
}
else {
res.send("User doesn't exist! /users/"+req.params.username);