This commit is contained in:
Barış Soner Uşaklı
2014-11-21 11:44:06 -05:00
parent 354268bccd
commit 2086ddf386

View File

@@ -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));
}
});
};