Earlier quoted context omitted.
It's not that cumbersome in Chrome. Right click the URL bar -> "Edit search engines" -> Find the search engine you'd like to easily search, double click the second column and enter a keyword for it. For example, for wikipedia, I have "wp" as a keyword. In the URL bar, you can just type "wp " and you can search wikipedia.
you don't even have to do any configuration. after you've used a search box that's correctly formatted (like wikipedia's is) chrome automatically offers you the option to "press tab to search" when you start typing that's site's url.
Ask HN: Why does Google put the query in the URL hash instead of query string?
61–70 of 71 posts
Re: Ask HN: Why does Google put the query in the URL hash instead of query string?
#62Earlier quoted context omitted.
Would that not remove the possibility for sharing or manually editing the URL? (I'm asking because I don't know how much cool stuff pushState can do.)
Not unless the server doesn't interpret the URL the same way.
Re: Ask HN: Why does Google put the query in the URL hash instead of query string?
#63On a related note, and probably obvious to many, I've just discovered I can make a nice little link to a one-result search, handy for a bookmark. Things like current temperature and forecast I don't want a dedicated app for when a simple search is more efficient... https://www.google.com/search?num=1&q=temperature+london
Re: Ask HN: Why does Google put the query in the URL hash instead of query string?
#64Earlier quoted context omitted.
Graceful degradation/progressive enhancement is a thing, though.
The amount of money Google makes supporting older browsers is most likely measured in billions. Not to mention, why fix something that isn't broken? There are cases for it, but it's roughly the same tech that it was 4 years ago. What would they gain by spending developer time on it?
Re: Ask HN: Why does Google put the query in the URL hash instead of query string?
#65On a related note, and probably obvious to many, I've just discovered I can make a nice little link to a one-result search, handy for a bookmark. Things like current temperature and forecast I don't want a dedicated app for when a simple search is more efficient... https://www.google.com/search?num=1&q=temperature+london
Re: Ask HN: Why does Google put the query in the URL hash instead of query string?
#66Earlier quoted context omitted.
Graceful degradation/progressive enhancement is a thing, though.
The amount of money Google makes supporting older browsers is most likely measured in billions. Not to mention, why fix something that isn't broken? There are cases for it, but it's roughly the same tech that it was 4 years ago. What would they gain by spending developer time on it?
Re: Ask HN: Why does Google put the query in the URL hash instead of query string?
#67Earlier quoted context omitted.
"never sent to the server" It's sent in a separate request.
That's because a request is manually created with javascript; this is not because it's part of the url. If you append #something to most random url's, nothing will happen (unless specific behaviour was written to do so).
Re: Ask HN: Why does Google put the query in the URL hash instead of query string?
#68Earlier quoted context omitted.
Yes, and if you're using Firefox, you can this with the knowledge of its Smart Keywords to create super quick shortcuts! https://support.mozilla.org/en-US/kb/how-search-from-address... For example, I directly go to Wikipedia's page on "India " by typing wp India in my address bar using these search keywords, or search images of birds on google by typing gi birds in it. (There's a rather cumbersome way to do the same…
It's not that cumbersome in Chrome. Right click the URL bar -> "Edit search engines" -> Find the search engine you'd like to easily search, double click the second column and enter a keyword for it. For example, for wikipedia, I have "wp" as a keyword. In the URL bar, you can just type "wp " and you can search wikipedia.
Re: Ask HN: Why does Google put the query in the URL hash instead of query string?
#69Earlier quoted context omitted.
They could if they were building it now. IE got pushState support in IE 10 in 2012. The hash state has been there since Instant Search was launched in 2010.
Graceful degradation/progressive enhancement is a thing, though.
Rare on today's web, but still a thing.
Re: Ask HN: Why does Google put the query in the URL hash instead of query string?
#70I think they did it to reduce stability and occasionally render blank results pages.