Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a disable/enable option to site redirection subscriptions #42317

Closed
mrfoxtalbot opened this issue May 18, 2020 · 7 comments · Fixed by #44224
Closed

Add a disable/enable option to site redirection subscriptions #42317

mrfoxtalbot opened this issue May 18, 2020 · 7 comments · Fixed by #44224
Labels
[Feature Group] Emails & Domains Features related to email integrations and domain management. [Feature] Subscriptions All subscription-related things such as paid and unpaid, user management, and newsletter settings. Good First Issue Small, contained issues. [Type] Feature Request Feature requests

Comments

@mrfoxtalbot
Copy link

Steps to reproduce

  1. Create a site direction: https://wordpress.com/domains/add/site-redirect/
  2. Head to "Redirect Settings" https://wordpress.com/domains/manage/mrfoxtalbot.com/redirect-settings/

What I expected

I expected to be able to "switch off" the redirection without having to cancel it. Being able to do this could be necessary in the context of troubleshooting, for example.

What happened instead

There is no option to do this, only to update the URL being redirected to.

Browser / OS version

MacOS 10.13.6 (17G2307)
Google Chrome 79.0.3945.88

Screenshot / Video

Screen Shot 2020-05-18 at 08 54 38

Context / Source

This was brought to my attention by @igmoweb in the context of trying to use WordPress.com with the REST API, with the front-end showing on an external site, while maintaining the RSS feed in the original wordpress.com site.

Not being able to switch this redirection made it hard to test/troubleshoot this.

@mrfoxtalbot mrfoxtalbot added [Feature Group] Emails & Domains Features related to email integrations and domain management. [Type] Feature Request Feature requests [Feature] Subscriptions All subscription-related things such as paid and unpaid, user management, and newsletter settings. labels May 18, 2020
@klimeryk
Copy link
Contributor

Thanks for the report! There is actually a way to "disable" the Site Redirect, though I get that it might not be as simple as a "Disable/Enable" button - you need to simply make it the non primary domain for the site. Cause in the end that's just what it is - another "domain" on the site. And all other domains redirect to the primary one. And if the primary one is the site redirect, then there's another redirect - to the site redirect's target. If you make a different domain primary (even just the WPCOM subdomain), the site redirect effectively becomes disabled/non-functional.

I don't think adding an explicit button on the UI could help with that, cause it could just cause confusion and will perform an action (change of primary domain) out of context. It could be helpful to put either an explicit helper text there or even just a link to our support docs and have a mention there how to change it.

It might be possible that some of this confusion could be addressed by the work @fditrapani and @hambai are doing around domain management. I know that setting the primary domain has been on their radar as an action that is poorly explained in the UI (what's a primary domain?, etc.).

@fditrapani
Copy link
Contributor

Thanks for the report!

It could be helpful to put either an explicit helper text there or even just a link to our support docs and have a mention there how to change it.

This could be a good middle step for now. What do you all think about this:

image

This is the link we can point people to: https://wordpress.com/support/site-redirect/

@klimeryk
Copy link
Contributor

Sounds like a good start to me 👍
I'll mark this as a good first issue in case an OSS contributor (or any a11n) wants to take a stab at it.

The copy needs to be updated here:

{ translate( 'All domains on this site will redirect here.' ) }

To access that view, you need to go Manage -> Settings on your site and then redirect link here:
Screenshot 2020-05-20 at 18 35 17

Happy to help with testing, code reviews or pair programming!

@klimeryk klimeryk added the Good First Issue Small, contained issues. label May 20, 2020
@ncardeli
Copy link
Contributor

ncardeli commented Jul 15, 2020

Would love to work on this issue! Unfortunately, I can't access the view because, when I try to create a site redirect, I'm asked to pay for a Site Redirect subscription, on my local copy of Calypso. As I can't create a site redirect, I cannot access the redirect settings.

Couldn't find information on how to skip the payment step niether on the contributing guide nor googling.
Sorry if it's a dumb question, first time contributing here!

@klimeryk
Copy link
Contributor

Hi, @ncardeli! Thanks for the help ❤️
Not a noob question - I should have anticipated this :) I've added credits to your WordPress.com account (same username as your GitHub one, thankfully ;)). You should now be able to go through the purchase flow and use them to purchase a site redirect. From there, hopefully you'll have everything you need - but please let me know if you run into any other blockers or issues 🙇

@ncardeli
Copy link
Contributor

Thanks for the credits @klimeryk! 👍

One more question here. This is how it would look with the text @fditrapani suggested:

imagen

I might be nitpicking here, but I'm not sure about the line break in the middle of "Learn more" when the dialog box reaches its max width. What do you think?

@ncardeli
Copy link
Contributor

I opened a PR with the work I've done so far on this issue. We can continue discussing the solution there.

klimeryk pushed a commit that referenced this issue Jul 21, 2020
)

To disable a site redirect users have to make it the non primary domain for the site.
Users trying to disable a site redirect, who might not know about this, may end up in the site redirect settings update dialog, trying to disable it.

Fixes #42317
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature Group] Emails & Domains Features related to email integrations and domain management. [Feature] Subscriptions All subscription-related things such as paid and unpaid, user management, and newsletter settings. Good First Issue Small, contained issues. [Type] Feature Request Feature requests
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants