Amphtml: AMP-Redirect-To doesnt work anymore?

Created on 5 Nov 2019  路  12Comments  路  Source: ampproject/amphtml

Hi, since yesterday no amp redirect via php is working anymore.
header("AMP-Redirect-To: https://littlehelps.de/index.php");
exit();
I didnt change anything at my code and it worked fine all the time so i assume that you updated something?

What browsers are affected?

all browsers on all devices

Which AMP version is affected?

amp-version="1911042323000"

Drop Everything Bug components

All 12 comments

We can confirm the same behavior.

Anyone care to comment why this quit working?
Is it related to another issue?

@aaron-renovationbrands @baert93 can we get a link to a live page that is down?

https://www.americantinceilings.com/pattern6/

Not "Add to Cart" here, the post action is on the slider(interstitial) titled "Skip & Continue To Cart" .
Products add to cart (navigate manually).

Thanks for reporting the issue! This is the PR to revert: #25470

The fix has landed in master. We are verifying the fix and will be rolling out to production ASAP.

@aaron-renovationbrands @baert93 Can you confirm that the behavior is restored on your respective pages?

Working.
Thanks!!

The issue is resolved since #25470 hit production, post mortem on cherry-pick #25473 to follow.

yeah its working fine, ty for the fast solution!

@baert93 Could you still provide the steps to reproduce on your website? It would be great to have as much information as possible for the post mortem.

Of course! Ill try to explain it with the login-page.

  • https://littlehelps.de/login.php after submitting the email and pw with the amp-form you land on another php file where i check the email and pw with the database
  • if everything is fine ill set a cookie and link you back to the startpage with:
    setcookie('testcookie','test'); header("AMP-Redirect-To: https://littlehelps.de/index.php?login=success"); exit();
  • the problem was that i never left the login page but the login-process still executed succesfully, so the cookie was set but the redirection didnt work
    I hope the explanation is understandable!
    Greetings Robert
Was this page helpful?
0 / 5 - 0 ratings