#1269: Search an expression with CamelCase does not work
-------------------------------------+--------------------------------------
 Reporter:  [EMAIL PROTECTED]  |        Owner:  cboos   
     Type:  defect                   |       Status:  assigned
 Priority:  normal                   |    Milestone:  0.10    
Component:  search system            |      Version:  0.8.1   
 Severity:  minor                    |   Resolution:          
 Keywords:  search CamelCase         |  
-------------------------------------+--------------------------------------
Comment (by cboos):

 On top of r3350, doing a quickjump only if the page (or any other object)
 exists would be implemented like this:
 {{{
 #!diff
 Index: trac/Search.py
 ===================================================================
 --- trac/Search.py      (revision 3350)
 +++ trac/Search.py      (working copy)
 @@ -218,7 +218,8 @@
              return req.href.browser(kwd)
          link = wiki_to_link(kwd, self.env, req)
          if isinstance(link, Element):
 -            return link.attr['href']
 +            if 'missing' not in link.attr.get('class_', ''):
 +                return link.attr['href']

      # IWikiSyntaxProvider methods
 }}}

 This will ignore redirections to objects that are known to be missing.

 Also, it was suggested somewhere that we could disable the quickjump
 entirely
 in the search page, only have it when the search is triggered from the
 small form present on every page... opinions?

-- 
Ticket URL: <http://projects.edgewall.com/trac/ticket/1269>
The Trac Project <http://trac.edgewall.com/>
_______________________________________________
Trac-Tickets mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac-tickets

Reply via email to