#11375 NORM 12.1.0: Custom OLPC search in local content bundle landing page is broken

Zarro Boogs per Child bugtracker at laptop.org
Thu May 31 12:24:44 EDT 2012


#11375: Custom OLPC search in local content bundle landing page is broken
---------------------------------------+------------------------------------
           Reporter:  greenfeld        |       Owner:  manuq                            
               Type:  defect           |      Status:  new                              
           Priority:  normal           |   Milestone:  12.1.0                           
          Component:  browse-activity  |     Version:  Development build as of this date
         Resolution:                   |    Keywords:                                   
        Next_action:  diagnose         |    Verified:  0                                
Deployment_affected:                   |   Blockedby:                                   
           Blocking:                   |  
---------------------------------------+------------------------------------
Changes (by martin.langhoff):

 * cc: humitos (added)
  * owner:  erikos => manuq
  * milestone:  11.3.1 => 12.1.0


Comment:

 11.3.1 has sailed, but we may be on time to fix this for 12.1.0 (it repros
 on 12.1.0). Manuq, humitos?

 My notes: the browser homepage is using the same "custom google search"
 that wiki.laptop.org used to use. We had this same problem with wiki.l.o,
 and we changed the search to fix it.

 So now a search for "foo" from wiki.l.o works well, and the URL looks
 like:

 http://www.google.com/cse?cx=011382939614944835298:qbypfcvcgvi&q=foo&oq=foo&aq=f&aqi=&aql=&gs_l=partner.3...0.0.1.14.0.0.0.0.0.0.0.0..0.0.gsnos%2Cn%3D13..0.0.&gs_204=2

 A search from Browse homepage fails, the URL looks like:
 http://www.google.com/custom?hl=en&domains=laptop.org&sitesearch=laptop.org&q=foo&btn1=+%C2%A0%C2%A0Search+%C2%A0OLPC%C2%A0%C2%A0+

 Options in my mind

  * Update the search form to the new Google URL with new hidden form
 values. Will this stay stable for a long time?
  * Update the search form to point to a
 dev.laptop.org/googlequery?q=<querystr> URL, add an apache mod_rewrite
 rule that adds the current params and redirects to the google servers with
 the additional params. If/when the google params change, we can change it
 at the server.

 If you guys prefer the 2nd option, I'll be happy to do the mod_rewrite
 wranging on the server.

-- 
Ticket URL: <http://dev.laptop.org/ticket/11375#comment:2>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system


More information about the Bugs mailing list