Re:Chrome 64 now trims messy links when you share them
by dhritzkiv on Monday February 19, 2018 @04:07PM
(#16415760)
This seems like an odd feature, with more downsides than positives. Sure: long, messy URLs seem ugly; but, anchor tags and query parameters are often integral to display the desired state of a certain page. Anchor tags especially.
Also, how does it determine which parameters are critical to keep in? In the example, `ie` and `node` are retained, but `smid` is stripped. Obviously, `node` is important`, but `smid` may also be, whereas `ie` seems superfluous.
Re:Chrome 64 now trims messy links when you share them
by kodablah on Monday February 19, 2018 @04:36PM
(#16415935)
After some investigation, it appears to use the link rel=canonical head element that the search engine uses [0]. So it doesn't seem that nefarious since it's opt-in.
Re:Chrome 64 now trims messy links when you share them
by kevin_b_er on Monday February 19, 2018 @05:02PM
(#16416111)
Will this mean the canonical links will start to disappear from pages? I doubt amazon, for one, will want to lose their tracking markers from pressing share.
Re:Chrome 64 now trims messy links when you share them
by kodablah on Monday February 19, 2018 @05:13PM
(#16416188)
I hope so. I don't appreciate that they were floated for SEO and are now used for an alternative purpose. They don't even mention it on the page I linked.
What I wonder is if the other forms of letting Google know the SEO-canonical URLs are also applied to Share-Link-canonical URLs (e.g. in the sitemap). I suspect not based on the sibling poster's source link. So the right answer seems to be not to use the head element if you don't want Google taking it off when sharing. All web devs know how to use JS to perform non-history-changing URL changes if we really wanted to cull the query parameters. We don't need their help.
Re:Chrome 64 now trims messy links when you share them
by Osiris on Monday February 19, 2018 @04:13PM
(#16415797)
Exactly. When I share links, I always test a link (load the link in a private window) after stripping out the extra URL info before sharing it. I'm not sure how a browser would do that automatically.
Re:Chrome 64 now trims messy links when you share them
by dullgiulio on Monday February 19, 2018 @04:27PM
(#16415881)
That has exponential complexity, is network-bound (slow) and still doesn't handle many cases (for example a "current DOM" where all relative links and images are broken).
Re:Chrome 64 now trims messy links when you share them
by bluepnume on Monday February 19, 2018 @04:39PM
(#16415963)
Should be O(n) unless you're trying to optimize for every single permutation of query param, right? I'd assume the majority of the time the individual params would be independent from one another. Plus you'd only need to do it once in a while for any given base url and persist the result.
Re:Chrome 64 now trims messy links when you share them
by koboll on Monday February 19, 2018 @04:21PM
(#16415848)
Agreed. Why is this necessary?
The only possible endgame here seems like sites abandoning query params in favor of baking that information directly into the URL, which is a worse situation all around.
Re:Chrome 64 now trims messy links when you share them
by DvdGiessen on Monday February 19, 2018 @05:22PM
(#16416238)
I like the idea of sharing clean URL's. Actually, I use the Pure URL add-on[0] for Firefox which also removes garbage such as e-mail campaign tracking values, both for the purpose of sharing and since I prefer seeing/visiting clean URL's myself as well.
The Chrome implementation using the canonical URL has some edge cases which may be useful to handle, like adding the fragment which isn't part of the canonical URL for the resource yet can be useful to share. Given that this change is only for the share dialog and not for copying from the URL bar, that doesn't seem like a huge problem though.
Re:Chrome 64 now trims messy links when you share them
by gpvos on Monday February 19, 2018 @04:35PM
(#16415932)
It appears to rewrite a URL of the form https://www.amazon.com/s/browse/.... to https://www.amazon.com/b?.... . This means it either has a (possibly huge) database of rewrite rules that needs to be kept up-to-date, or communicates with yet another Google API. Probably the latter, leaking even more of your browsing history to Google.
Re:Chrome 64 now trims messy links when you share them
by reificator on Monday February 19, 2018 @04:39PM
(#16415960)
Or it could just as easily be using the canonical links in the head of the page.
Jumping straight to malice when the answer could be simple and benign is incredibly harmful. It undermines efforts to shine a light on truly malicious behavior.
Also, how does it determine which parameters are critical to keep in? In the example, `ie` and `node` are retained, but `smid` is stripped. Obviously, `node` is important`, but `smid` may also be, whereas `ie` seems superfluous.
0 - https://support.google.com/webmasters/answer/139066?hl=en
https://cs.chromium.org/chromium/src/third_party/WebKit/Sour...
What I wonder is if the other forms of letting Google know the SEO-canonical URLs are also applied to Share-Link-canonical URLs (e.g. in the sitemap). I suspect not based on the sibling poster's source link. So the right answer seems to be not to use the head element if you don't want Google taking it off when sharing. All web devs know how to use JS to perform non-history-changing URL changes if we really wanted to cull the query parameters. We don't need their help.
Also not sure why you'd want to share a link to a page where all the images and links are broken in the first place.
That being said, a huge majority of users wouldn't take these extra steps.
The only possible endgame here seems like sites abandoning query params in favor of baking that information directly into the URL, which is a worse situation all around.
The Chrome implementation using the canonical URL has some edge cases which may be useful to handle, like adding the fragment which isn't part of the canonical URL for the resource yet can be useful to share. Given that this change is only for the share dialog and not for copying from the URL bar, that doesn't seem like a huge problem though.
[0]: https://addons.mozilla.org/en-US/firefox/addon/pure-url/
Jumping straight to malice when the answer could be simple and benign is incredibly harmful. It undermines efforts to shine a light on truly malicious behavior.