Skip to content

Node.js based forum software built for the modern web

closes #2444

Barış Soner Uşaklı2086ddf386c1
diff --git a/public/src/app.js b/public/src/app.js
index 766c8755a7..09828f14c1 100644
--- a/public/src/app.js
+++ b/public/src/app.js
@@ -269,8 +269,8 @@ var socket,
selector = selector || $('a');
selector.each(function() {
var href = $(this).attr('href');
- if (href && app.userslug && href.indexOf('_') !== -1) {
- $(this).attr('href', href.replace(/_/g, app.userslug));
+ if (href && app.userslug && href.indexOf('user/_self_') !== -1) {
+ $(this).attr('href', href.replace(/user\/_self_/g, 'user/' + app.userslug));
}
});
};