amphtml icon indicating copy to clipboard operation
amphtml copied to clipboard

Getting redirect notice when clicking on the amp URL in the search results.

Open PrabhuPuredla95 opened this issue 7 years ago • 20 comments

We have implemented signed exchange to show our domain URL in the browser. When I clicked on amp URL in the google search results, redirect notice is being shown every time. Please refer to the image: bikewale redirect notice

I checked amp.dev website which is implemented using signed exchanges, I see the same behaviour as in the below image ampdev redirect notice

I am not able to able to replicate the same in other machines

chrome browser version: Version 77.0.3865.90

PrabhuPuredla95 avatar Sep 25 '19 05:09 PrabhuPuredla95

I have also faced same issue after updating latest version amp on My site timesalert. I have roll backed with old version now issue is resolved.

timesalert avatar Sep 29 '19 14:09 timesalert

cc @Gregable

nainar avatar Oct 01 '19 05:10 nainar

$ curl -s -H 'AMP-Cache-Transform: google;v=1..2' -H 'Accept: application/signed-exchange;v=b3' https://www.bikewale.com/m/royalenfield-bikes/classic-350/amp/

Your site does not appear to respond with a signed exchange when provided with appropriate request headers.

The redirect notice doesn't appear to come from the AMP Cache, but I'd need more information on how to reproduce to debug further.

Gregable avatar Oct 01 '19 20:10 Gregable

@timesalert If you could provide more information, I'd also be happy to debug further.

Gregable avatar Oct 01 '19 20:10 Gregable

@Gregable It is happening in only few specific devices. I have seen the redirect notice in Pixel 2 XL. We have reverted amp signed exchange since we don't how many users are being shown the redirect notice.

PrabhuPuredla95 avatar Oct 03 '19 11:10 PrabhuPuredla95

Thanks @Gregable I am working with @CW-prabhupuredla on this. We have reverted amp signed exchange for our amp pages cause of the steep decline in crawled pages from google (We checked the crawl stats on google search console, there were no crawl errors reported.). The number of crawled pages went down to 120k from 500k per day. It came back to normal after reverting.

We were using amppackager to serve singed exchange.

You can follow our staging URL https://staging.bikewale.com/m/royalenfield-bikes/classic-350/amp/ to get a response with singed exchange

Also amp-cahce-transform header value would be google;v="1..2" (quotaions)

$ curl -s -H 'AMP-Cache-Transform: google;v="1..2"' -H 'Accept: application/signed-exchange;v=b3' https://staging.bikewale.com/m/royalenfield-bikes/classic-350/amp/ -I

ashu82492 avatar Oct 04 '19 06:10 ashu82492

@Gregable Every browser in mobile (android one) behave differently. Chrome: redirect notice. Firefox: google cache Opera: direct

alef-media avatar Nov 06 '19 12:11 alef-media

@Gregable Every browser in mobile (android one) behave differently. Chrome: redirect notice. Firefox: google cache Opera: direct

Strange, I have two mobile (android one) both them are have same version of Chrome the redirect notice appear only with Moto One Vision, the second one has no issue.

Moto One Vision Chrome V: 78.0.3904.90 Android V: PSAS.29.160-50-2

Moto One: Chrome V: 78.0.3904.90 Android V: PPKS29.68-16-36-9

alef-media avatar Nov 06 '19 17:11 alef-media

@alef-media, is this for the same URL that @CW-prabhupuredla was reporting, or a different one?

I've still been unable to reproduce this which makes it difficult to debug. It seems like the previous URL is no longer showing this issue. If you don't want to share the URL, feel free to send me a direct message on Slack.

Gregable avatar Nov 06 '19 18:11 Gregable

@alef-media, is this for the same URL that @CW-prabhupuredla was reporting, or a different one?

I've still been unable to reproduce this which makes it difficult to debug. It seems like the previous URL is no longer showing this issue. If you don't want to share the URL, feel free to send me a direct message on Slack.

Hi @Gregable WhatsApp Image 2019-11-06 at 10 25 40 PM (1) WhatsApp Image 2019-11-06 at 10 25 40 PM

It seem all amp website with signed exchange show this notice. I saw these on any link under amp.dev and goat.com.au

alef-media avatar Nov 06 '19 19:11 alef-media

Can you share the full google.com/url you're seeing?

ericfs avatar Nov 07 '19 01:11 ericfs

Filed internal b/144048906

ericfs avatar Nov 07 '19 01:11 ericfs

https://www.google.com/url?sa=t&source=web&cd=1&ved=2ahUKEwiW5KqrutXlAhXS4IUKHWe0DgYQFjAAegQICBAC&url=https%3A%2F%2Famp-dev.cdn.ampproject.org%2Fwp%2Fs%2Famp.dev%2F%3Fusqp%3Dmq331AQOKAGYAZPouYLWzsH_jgE%253D&usg=AOvVaw0PSRdfK6IyWpiVMjRT9EDr

https://www.google.com/url?sa=t&source=web&cd=1&ved=2ahUKEwjWxq7L69flAhUSXRoKHZwrCMoQFjAAegQIARAB&url=https%3A%2F%2Fgoat-com-au.cdn.ampproject.org%2Fwp%2Fs%2Fgoat.com.au%2F%3Fusqp%3Dmq331AQNKAGYAfST3aXWv4DpEA%253D%253D&usg=AOvVaw3bRe9adfLXkR-EBS3shi6z

alef-media avatar Nov 07 '19 10:11 alef-media

Thank you for sharing the links. We're investigating.

ericfs avatar Nov 07 '19 13:11 ericfs

Does this reproduce in an incognito window?

ericfs avatar Nov 07 '19 22:11 ericfs

You are welcome, I just tested with incognito window, there is no redirect notice for both websites apm.dev and goat.com.au

alef-media avatar Nov 09 '19 14:11 alef-media

Thanks. We haven't figured out the specific cause, but this is a great clue. It seems to be related to some small experiment.

ericfs avatar Nov 11 '19 16:11 ericfs

This should be fixed now. Thanks again. for the report and the help debugging.

ericfs avatar Nov 14 '19 15:11 ericfs

Yes It is fixed. You are welcome.

alef-media avatar Nov 18 '19 15:11 alef-media

Great. @Gregable or someone else, can you please close? I don't have permission. Thank you.

ericfs avatar Nov 18 '19 16:11 ericfs