##// END OF EJS Templates
search: fix bug where file path link was wrong when the repository...
dan -
r797:ff35bfc3 default
parent child Browse files
Show More
@@ -265,7 +265,7 b' class WhooshResultWrapper(object):'
265
265
266 f_path = '' # noqa
266 f_path = '' # noqa
267 if self.search_type in ['content', 'path']:
267 if self.search_type in ['content', 'path']:
268 f_path = res['path'].split(res['repository'])[-1]
268 f_path = res['path'][len(res['repository']):]
269 f_path = f_path.lstrip(os.sep)
269 f_path = f_path.lstrip(os.sep)
270
270
271 if self.search_type == 'content':
271 if self.search_type == 'content':
General Comments 0
You need to be logged in to leave comments. Login now