New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 799955 link

Starred by 1 user

Issue metadata

Status: ExternalDependency
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android , iOS
Pri: 2
Type: Bug-Regression



Sign in to add a comment

Incorrect link copied to clipboard with plus.google.com posts

Project Member Reported by srikanthg@chromium.org, Jan 8 2018

Issue description

App Version: 64.0.3282.81 beta
iOS Version: 11.2.5, 11.1.1
Device: iPhoneX, iPhone7
URL: plus.google.com

Steps to reproduce:
  1. Launch Google Chrome
  2. Navigate to https://plus.google.com (No Need to sign into Google plus)
  3. Tap on any post
  4. Observe that the URL is a direct link to the post
  5. Tap Menu → Share → Copy

Observed results: Observe that https://plus.google.com/discover is copied into the clipboard

Expected results: Full URL to the post should be copied

Number of times you were able to reproduce: 5/5
Bug reproducible after clean install: Yes
Bug reproducible after clearing cache and cookies: Yes
Bug reproducible on Chrome Mobile on Android: 
Bug reproducible on Safari/Firefox: Firefox: YES, Safari: YES
Bug reproducible on current stable build (App Version, iOS Version): M63 NO
Bug reproducible on the current beta channel build (App Version, iOS Version): M64 YES

Link to video/image: https://drive.google.com/file/d/1NpQo2fyf6bb_JLB5nX8LIju6ueZg9bBX/view 
 

Comment 1 by sczs@chromium.org, Jan 10 2018

Owner: olivierrobin@chromium.org
Status: Assigned (was: Untriaged)
olivierrobin@ could you PTAL.
Status: Started (was: Assigned)
Cc: tedc...@chromium.org mard...@chromium.org
The canonical URL is https://plus.google.com/discover, so AFAICT, this is WAI.
Adding Android as this is a mobile issue.

Keeping ownership as gchatz@ left
Adding mardini@ for decision
Adding tedchoc@ for Android
Labels: OS-Android
Status: ExternalDependency (was: Started)
Another bug about canonical URL breakage:
https://bugs.chromium.org/p/chromium/issues/detail?id=813813

Comment 7 by pfish@google.com, Feb 27 2018

To give another repro case with more details on exactly what happens:

Chrome Dev 66.0.3352.3

1. Visit https://www.instagram.com/simpsons_meme_factory/

2. Click on any of the fine wares on display.
   *Navigation happens via a pushState() rather than a new page request.*

   The URL in the bar is now something like
   https://www.instagram.com/p/BfdCdnOFVm9/

3. Tap menu > share.

EXPECTED RESULT:
The URL that is shared is:
https://www.instagram.com/p/BfdCdnOFVm9/

ACTUAL RESULT:
The URL that is shared is:
https://www.instagram.com/simpsons_meme_factory/

Comment 8 by pfish@google.com, Feb 27 2018

Wearing my webdev hat:

I see three issues with this:

- Websites that manipulate the URL with pushState/replaceState don't expect to have to (and sometimes can't) update the canonical URL that was first loaded.  (This is what the original reporter noticed about Google+, and what I noticed about Instagram.)  These sites only expect to set the canonical URL on page load, and not update it with internal nav.

- Some websites use the URL to store state that, while it is meaningful and useful to humans, is not useful in the indexing process.  (I have a more detailed explanation below.)

---

To go into more detail:

In the web application I work on, sharing the rel-canonical link isn't something I want to happen in any case.  I work on an application with a map, and we use replaceState to generate URLs that look like:

https://my-app.example.com/map/place-id?type=something&lat=...&lng=...&zoom=...

If a user requests that URL, we show a map centered on the given point at the given zoom level.  However, we also include a Link: ... rel=canonical header with this URL:

https://my-app.example.com/map/place-id?type=something

(i.e., the URL without the lat/lng/zoom)

This is explicitly intended, so that when a user shares their page, the recipient sees the exact view they see.  However, when accessed by a search engine, the search engine is informed that lat/lng/zoom are irrelevant for indexing, and only the place id and type are important.
Cc: somo...@chromium.org pinkerton@chromium.org

Sign in to add a comment