diff --git a/rhodecode/public/js/rhodecode.js b/rhodecode/public/js/rhodecode.js --- a/rhodecode/public/js/rhodecode.js +++ b/rhodecode/public/js/rhodecode.js @@ -714,8 +714,9 @@ var fileBrowserListeners = function(curr var t = nodes[i].type; var n_hl = n.substring(0,pos) +"{0}".format(n.substring(pos,pos+query.length)) - +n.substring(pos+query.length) - match.push('{2}'.format(t,node_url.replace('__FPATH__',n),n_hl)); + +n.substring(pos+query.length) + node_url = node_url.replace('__FPATH__',n); + match.push('{2}'.format(t,node_url,n_hl)); } if(match.length >= matches_max){ match.push('{0}'.format(_TM['search truncated']));