Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Chrome search my website from URL Bar

If you open Google Chrome, click inside the URL bar and write: google.com and hit tab, you'll get a: Search Google for <enter query>.

I tried it on my website and because I'm using javascript to process the form before sending it to an SEO friendly url, the search for my website is not working It's redirecting me to site.com/?question=test instead of site.com/search/test

Is there a way to fix that?

like image 984
Jad Joubran Avatar asked Apr 01 '13 12:04

Jad Joubran


1 Answers

It is called the omnibar. There are some tutorials if you search Google for them. It's just a link tag that tells Chrome what URL to use when the user searches your site with the omnibar. The specifics are detailed in the Open Search Description (OSD).

Here is Stack Overflow's OSD:

<link rel="search" type="application/opensearchdescription+xml" title="Stack Overflow" href="/opensearch.xml" />
like image 176
Cole Tobin Avatar answered Nov 14 '22 16:11

Cole Tobin