You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bloodhound.apache.org by as...@apache.org on 2013/04/22 18:44:23 UTC
svn commit: r1470615 - /bloodhound/trunk/bloodhound_search/bhsearch/web_ui.py
Author: astaric
Date: Mon Apr 22 16:44:22 2013
New Revision: 1470615
URL: http://svn.apache.org/r1470615
Log:
Fixed QuickLink search in default product. Part of #450.
Modified:
bloodhound/trunk/bloodhound_search/bhsearch/web_ui.py
Modified: bloodhound/trunk/bloodhound_search/bhsearch/web_ui.py
URL: http://svn.apache.org/viewvc/bloodhound/trunk/bloodhound_search/bhsearch/web_ui.py?rev=1470615&r1=1470614&r2=1470615&view=diff
==============================================================================
--- bloodhound/trunk/bloodhound_search/bhsearch/web_ui.py (original)
+++ bloodhound/trunk/bloodhound_search/bhsearch/web_ui.py Mon Apr 22 16:44:22 2013
@@ -558,7 +558,9 @@ class RequestContext(object):
description = link.attrib.get('title', '')
if quickjump_href:
# Only automatically redirect to local quickjump links
- if not quickjump_href.startswith(req.base_path or '/'):
+ base_path = req.base_path.replace('@', '%40')
+ redirect_href = quickjump_href.replace('@', '%40')
+ if not redirect_href.startswith(base_path or '/'):
noquickjump = True
if noquickjump:
return {'href': quickjump_href, 'name': tag.EM(name),