176 points · by andygambles · 11y ago · 71 comments
Yeah, it'd be nice if Google search pages came with a handy "Link to this" button as Google Maps and Google Books do...but in reality, that would raise even more issues. If I understand Google's search mechanism...the results are tailored to each user...my search for "burger place" is going to be much different than someone doing it in New York. Yet if I see a "Link to this" button -- especially if it's a link shortener -- then I would expect it to direct all users to results that I've seen. OK, I don't expect that...but I bet 99% of other users do.
So it's not a clearcut decision about whether such a feature should exist, given the ephemeralness and personalization of SERP. So given that it's not an intended common use case to pass around URLs to results...what is it that Google should do to fix this? Re-engineer their system so that every URL is a non-human-readable URL that obfuscates all possible metadata? Remove the ability to tailor search results based on past results of that same session? I can see why they might choose: "If a user wants to send around a URL by manually copying and pasting it, we should trust them to read it before they send it out as the relevant parameters are human readable"
I think doing subsequent searches as a "#q=x" change to the URL lets them avoid reloading the page and use clever javascript to replace the results.
OTOH, if you only put search params in the anchor-tag part, the initial search is much slower on slow connections.
Still, infoleaks are BAD. Page load and update speed shouldn't come before safety of a user's private information.
Remove the non-search-string metadata from the URL?
I mean, it's really a no-brainer.
Furthermore, the design trend is such that in most consumer-friendly websites, users have been trained/encouraged to share via buttons -- this is something that Google itself explicitly encourages in Google Maps -- again, deemphasizing the fact that URLs are (well, generally) available in the omni-box.
So I think it's a reasonable assumption that users who copy-paste from the omnibox are relatively rare. And those that do do it have something that button-pushers don't: the ability to examine what they've just copied-pasted.
Again, I don't think this is a case of "Oh, but everyone should know better than to blindly do such-and-such", a sentiment that many of us agree is wrongly applied to the hitting "OK" on agreeing to indecipherable TOS screens. But I can see why it's not an obvious design decision given the feature set that Google wants in its search functionality. The more I think about it, the more I think it should be more incumbent upon the user to notice what they of their own volition have decided to send out as text.
How is that different than the expectation required of users who send out screenshots? When I want to screenshot a webpage on my desktop -- even though I intend just to show the webpage, I know not to use the fullscreen-capture option because it will capture lots of metadata, even if the browser page itself is in full screen. Same deal on an iphone, in which screen-capture will leak metadata about you as a user (when the photo was taken and thus, possibly your time zone. And also your carrier) unless you intentionally crop it out before sending. And cropping out photos is very unintuitive on iphones (i.e. it is not easy to do without jumping into a third party application)
This conversation is substantially similar to the conversation we're having over here: https://news.ycombinator.com/item?id=10467855 so, I'll keep the conversation in one thread.
I also wonder why they don't just use pushState, which was proposed as a solution way back in 2010 but didn't have the browser support necessary. Now it's got the browser support:
https://news.ycombinator.com/item?id=10395008
That ex-Googler was me. :-)
I'm not actually sure whether they don't care about it, BTW - the SRP is about 1/3 as heavy as it was when I left, so it looks like someone's been cleaning it up. These things tend to move in cycles - I was hired at the very end of a "latency & performance" cycle, then spent most of my career there during a "moar featurez!" cycle, and it wouldn't surprise me if the focus is again latency and performance.
If Google can swing between adding a load to the page load and then whittling it down making it faster, the money difference involved must be fairly trivial.
Not Safe for Work:
Here I searched for "blow up doll" (yup, they sell them), then clicked on a cute alien inflatable doll. The original search is at the end of the martian doll URL, that I so thoughtfully shared with my kid, or grandkid, or spouse, or employer's decorating committe ...
http://www.amazon.com/Green-Inflatable-Martian-Alien-Decorat...
Maybe there should be a fix for this, at least to encrypt the old query, but realistically, this behavior is widespread in web apps, and it's only newsworthy because Google.
The hash part of the URL, (#andmorestuff) is not sent to the server by the browser, however the query string is. (?var=stuff&another=otherstuff)
Using this to send the search to the server is smart, since the server can respond with data without an additional round-trip AJAX request. However, everything in the URL, other than the hash is read-only by client-side scripts. So, if you want the URL to reflect the search, you can either a) reload the page using the query string, or b) follow the single page app methodology, and manipulate the query string with the data, and change it using an AJAX request.
Google's interactivity, with the smoother feel of not seeing an entire page refresh (plus potentially less data being sent over the wire after the initial load) could be simply stored in an internal state. However, should the user refresh, the search would be lost. If you try going to a Google search with a search query hash, you'll notice a brief delay before the search results are displayed.
For example, in this link: https://www.google.com/search?q=original#q=newsearch
The page loads, but there's an AJAX request to the /search route with the hash-specified query, with query string parameters to specify how the data should be served. Still, the client-side script cannot strip the query string of the previous search without a full page reload.
While the info leakage is annoying, it's unavoidable in this strategy.
Note: The browser history, and subsequently the URL can be manipulated through the History API's pushState, which could be a direction Google could go in, but IMHO, the hash approach is viable as well.
https://developer.mozilla.org/en-US/docs/Web/API/History_API
Mozilla Addons to the rescue once again. I am always surprised at how under appreciated plugins like these are. If I ever stumbled into money, I would pay it forward to all the developers who feverishly code these plugins for the betterment of humanity and the web.
Interestingly enough in Safari on 10.11, the URL I see in the address bar when searching for "$x" is just "$x" but when I copy and paste "$x" into a text box I see my previous search in the url. I've noticed safari shortening to just the base recently but this feels a bit off.
What do you mean by this? The following things fail to repro the issue for me on Firefox 41:
* Open google.com
* Type a search in the search box, press return. (get a #q=$SEARCH anchor)
* Type another search in the search box, press return. (get a #q=SEARCH2 anchor)
*
* Go to google.com
* Type in the search box, press return. (Same result as above.)
* Paste text into the search box, press return. (Same result as above.)
https://www.google.com/search?client=safari&rls=en&q=dog&ie=...
If I do a new search from the bar I don't see dog, when I type "cat" into the google provided box in the page I get the above result.
address bar reads [$x], where $x is search term, on copy you get a url.
https://news.ycombinator.com/item?id=10459123
Deleted all the nonessential arguments by hand out of suspicion of something like this. Nice to know I'm not being too paranoid.
The original query is stored in case you want to track back on the auto-suggest would you rather they to store those in cookies or non-volatile browser storage?
And while it's true that if you link some one an entire Google URL search URL you might leak the original query, but given all the other dark magic that is in the URL which can include your client type, version, location and other things (e.g. inter-service referrals if you go there from another google service like Google Maps) i think the original query is the least of your worries.
And if you want to link a query well just use https://www.google.co.uk/search?q=how to use google works just fine.
This is incredibly silly. URLs are how you get to a page. It's how The Web works!
> The original query is stored in case you want to track back...
That's what the History API is for. When you add an anchor-tag query, store the original state in the tab's history.
> i think the original query is the least of your worries.
Infoleaks are BAD. The least Google could do is use their URL rewriting powers to remove the original query when they add a query stored in the anchor-tag.
Change your omnibox search engine query to https://www.google.com/#q=%s (chrome terminology)
https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&c...
I consider it unacceptable. Why does Google do this? Is it for the purpose of tracking users?
This feels like a common problem with URLs. More and more sites send you onto other links while apppending some identifier to the URL. I frequently come across links shared by friends and colleagues where I can immediately see the referral site that was the source of the link (even though the destination of the link is different). Presumably this is yet another layer to the endless (but rarely questioned) tracking that has become the norm on the web.
>The other day, my friend sent me a link
So did Google respond with a "No" or is 2-3 days with no fix considered too long?
I'm not diminishing the seriousness of this problem but it just got a whole lot worse being on HN after only 2-3 days head start on a fix to a major part of the Google product line.
Most companies won't even respond if they don't intend to fix something, that way they can claim they're working on a fix when it all blows up in their face.
I'm not sure how this works (the URL I paste and use in Chrome is sent to Google?), but it came back few hours later from an agent called "Google favicon". The IPs in 66.249. range strongly suggest it's a legitimate Google bot.
Why they do it - no idea, but just to be save I blocked all 66.249. and 66.102. traffic across my systems.
EDIT: yes there is robot txt that dissalows all traffic. Google ignores.
This is very internal site - no need to have everyone from 66.249 acessing it.
Blocking by IP isn't the way to go, especially since Google's actual IP space in 66.249 and 66.102 is much smaller than the entire block (a /19 and /20, respectively) so you're causing a bunch of collateral damage to other networks in that address space.
https://www.google.com/search?q=computer+language&....&q=python
it should return different results than https://www.google.com/search?q=snakes&....&q=python
So if people send urls with queries (they should just send actual target urls) then it's quite relevant that the search results are the same for the both links sent.How? That's information you are voluntarily sharing. Besides you can easily see what you are sharing since it's not obfuscated nor encrypted in any way.
You have your own Google that knows a great deal about you. It's is tailored to you, your location, your life. Google has become an extension of self.
Making search more social by adding simple sharing capability means that you would be less likely to use Google for personal and private search queries.
Google is the most successful advertising company on the planet.