wp-calypso icon indicating copy to clipboard operation
wp-calypso copied to clipboard

Newsletters: "Manage your email settings or unsubscribe" link redirects to invalid URL

Open liviopv opened this issue 1 year ago • 2 comments

Quick summary

The hyperlink to "Manage your email settings or unsubscribe" in New Post email notifications has a broken redirect.

In the email, the linked URL is https://public-api.wordpress.com/bar/?stat=groovemails-events&bin=wpcom_email_click&redirect_to=https%3A%2F%2Fsubscribe.wordpress.com%2F%3Fkey%3Df03148e51803e6c8c577bfecc562b91d%26email%3Dliviopv%2540gmail.com%26b%3DPIvBEAi-dYCmr6F3jXY4npZSbx1a3C_ryuJmHYGFWPqzGRQtdGrE3KZdzfs9wjlaUUA39nvCPiy7nnrUO7paxXSCURRpe8GR20YLdcSj0uXBrTzaUATOzIRGHdI8qLQjZegc3ONmB7B0cMWxBwb4nrigbvpGLNnmgA%253D%253D%26oneclickunsubscribe%3Dtrue&sr=1&signature=8e6cab4c8f99c3b28939cc2b9cd552aa&user=113469066&_e=eyJlcnJvciI6bnVsbCwiYmxvZ19pZCI6MTMwNDE2NDk0LCJibG9nX2xhbmciOiJlbiIsInNpdGVfaWRfbGFiZWwiOiJqZXRwYWNrIiwiaGFzX2ZlYXR1cmVkX2ltYWdlIjoiMCIsInN1YnNjcmliZXJfaWQiOiIyNDYyMjc0MCIsIl91aSI6MTEzNDY5MDY2LCJsb2NhbGUiOiJlbiIsImN1cnJlbmN5IjoiQlJMIiwiY291bnRyeV9jb2RlX3NpZ251cCI6IkJSIiwic2lnbnVwX2Zsb3dfbmFtZSI6IiIsImVtYWlsX2RvbWFpbiI6ImdtYWlsLmNvbSIsInBvc3RfaWQiOjEwOTgsInVzZXJfZW1haWwiOiJsaXZpb3B2QGdtYWlsLmNvbSIsImRhdGVfc2VudCI6IjIwMjQtMDItMjMiLCJlbWFpbF9pZCI6ImM4ZDU1YWNiNjA5OTcyODBlZGE4YTFhZmE4YTMzN2Q3IiwiZW1haWxfbmFtZSI6Im5ldy1wb3N0IiwidGVtcGxhdGUiOiJuZXctcG9zdCIsImxpbmtfZGVzYyI6Im1hbmFnZS1zdWJzY3JpcHRpb24iLCJhbmNob3JfdGV4dCI6Ik1hbmFnZSIsIl9kciI6bnVsbCwiX2RsIjoiXC94bWxycGMucGhwP3N5bmM9MSZjb2RlYz1kZWZsYXRlLWpzb24tYXJyYXkmdGltZXN0YW1wPTE3MDg2ODU5MjQuNTg0JnF1ZXVlPXN5bmMmY2Q9MC4wMDEyJnBkPTAuMDAyMSZxdWV1ZV9zaXplPTUmYnVmZmVyX2lkPTY1ZDg3YTY0OGRkMzA5LjYyNDUzNTUzJnN5bmNfZmxvd190eXBlPWRlZGljYXRlZCZzdG9yYWdlX3R5cGU9Y3VzdG9tJnRpbWVvdXQ9MjAmaG9tZT1odHRwcyUzQSUyRiUyRmF0bGl2aW8ud3Bjb21zdGFnaW5nLmNvbSZzaXRldXJsPWh0dHBzJTNBJTJGJTJGYXRsaXZpby53cGNvbXN0YWdpbmcuY29tJmlkYz0xJmZvcj1qZXRwYWNrJndwY29tX2Jsb2dfaWQ9MTMwNDE2NDk0IiwiX3V0Ijoid3Bjb206dXNlcl9pZCIsIl91bCI6ImFrYWxpdmlvcHYiLCJfZW4iOiJ3cGNvbV9lbWFpbF9jbGljayIsIl90cyI6MTcwODY4NTkyOTA0NCwiYnJvd3Nlcl90eXBlIjoicGhwLWFnZW50IiwiX2F1YSI6IndwY29tLXRyYWNrcy1jbGllbnQtdjAuMyIsImJsb2dfdHoiOiIwIiwidXNlcl9sYW5nIjoiZW4ifQ=&_z=z which ends up redirecting to https://wordpress.com/read/site/subscription/invalid.

https://github.com/Automattic/wp-calypso/assets/14153300/eea1d787-6578-4dd9-808a-5e789562c137

Steps to reproduce

  1. Subscribe new post notifications on a WordPress.com site
  2. Create a new post on the site
  3. Open the email for the new post
  4. Click on "Manage your email settings or unsubscribe"

What you expected to happen

The link should go to https://wordpress.com/read/subscriptions with the options to manage settings for that specific site open

What actually happened

The link redirects to https://wordpress.com/read/site/subscription/invalid

Impact

Most (> 50%)

Available workarounds?

No but the platform is still usable

Platform (Simple and/or Atomic)

Simple, Atomic

Logs or notes

No response

liviopv avatar Feb 23 '24 11:02 liviopv

7783447-zd-a8c

liviopv avatar Feb 23 '24 11:02 liviopv

Support References

This comment is automatically generated. Please do not edit it.

  • [ ] 7783447-zen
  • [ ] 7858946-zen
  • [ ] 7852589-zen
  • [ ] 8326211-zen

github-actions[bot] avatar Feb 23 '24 11:02 github-actions[bot]

📌 ACTIONS

  • Triaged Escalation thread: p1708686711882169-slack-C02FMH4G8

liviopv avatar Feb 28 '24 15:02 liviopv

I believe there's another report of this in 7858946-zd-a8c, though specific details haven't been shared yet.

jp-imagines avatar Mar 14 '24 14:03 jp-imagines

Another potential report in 7852589-zd-a8c.

jp-imagines avatar Mar 18 '24 21:03 jp-imagines

Related is https://github.com/Automattic/jetpack/issues/36504 in the Jetpack repo.

BrookeDot avatar Mar 23 '24 01:03 BrookeDot

We're experiencing the same issue on a site I help manage (diff.wikimedia.org) that uses this feature to manage email subscriptions.

One thing to note from my testing. When I click the "manage" link in the email, it does appear to unsubscribe me! It's confusing as I see the "Subscription not found" message as shown in this ticket.

When I go to https://wordpress.com/read/subscriptions I can see I'm now set to not receive emails. Nor do I receive the next post that's published. I have to change my settings to then again receive emails.

ckoerner avatar Mar 25 '24 16:03 ckoerner

Hi folks, a couple of hours ago we deployed a fix for it D142897-code. Could you check if it fixed the issue for you?

The fix will work only with emails sent after the fix was applied. This link still won’t work for older emails, unfortunately.

pkuliga avatar Mar 25 '24 20:03 pkuliga

I quickly tested this with an email sent after the fix was applied. I can confirm that in my limited testing I am now directed to the appropriate page on Wordpress.com to manage my subscription!

Screenshot 2024-03-25 at 4 11 37 PM

ckoerner avatar Mar 25 '24 21:03 ckoerner

I can no longer reproduce, closing as fixed.

liviopv avatar Apr 25 '24 13:04 liviopv

User reported having this same issue again here: 8326211-zd-a8c, and I was able to replicate this with my own subscriptions. Re-opening this issue.

cat-og avatar Jun 13 '24 17:06 cat-og

@cat-og I tested this again today and I wasn't able to reproduce - the "Manage your email settings or unsubscribe" links in all emails I tested worked fine and correctly redirected me to the Subscription Management screen:

https://github.com/Automattic/wp-calypso/assets/14153300/6bca60d4-f9f1-4b0f-a7f7-b1fc1a488571

@pkuliga can take a look at Cat's report above to see if this is a cause that the fix you deployed in March didn't catch?

liviopv avatar Jun 19 '24 10:06 liviopv

We've improved resilience of these links recently, and just last week @lezama and @enejb worked out some quirks. @lezama safe to close now?

simison avatar Jun 19 '24 10:06 simison

I can't reproduce the issue on my end, sharing the same experience as mentioned by @liviopv in https://github.com/Automattic/wp-calypso/issues/87825#issuecomment-2178356545. We're addressing clear next steps for all blocker/high-priority issues on The One Board (pb5gDS-3YO-p2). For this issue, I'll be closing it unless it can be reproduced again. cc: @Automattic/zap @cat-og

candy02058912 avatar Jul 08 '24 06:07 candy02058912