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

Domain Management: Email: Select site redirects to manage domains #855

Closed
fabianapsimoes opened this issue Nov 26, 2015 · 10 comments · Fixed by #3324
Closed

Domain Management: Email: Select site redirects to manage domains #855

fabianapsimoes opened this issue Nov 26, 2015 · 10 comments · Fixed by #3324
Assignees
Labels
[Feature Group] Emails & Domains Features related to email integrations and domain management. Framework G Suite [Pri] Normal Schedule for the next available opportuinity. [Type] Bug When a feature is broken and / or not performing as intended

Comments

@fabianapsimoes
Copy link
Contributor

Originally reported by @breezyskies

If you go to wordpress.com/domains/manage/email without a site selected, it redirects to wordpress.com/domains/manage -- so when you select a site, you end up in domain management instead of email (Google Apps).

Note: We are looking to send out promotional emails for Google Apps this week, which will link to this page, so we need the redirect to work properly for that.

cc: @rads who I talked to about this in AMS.

@fabianapsimoes fabianapsimoes added [Type] Bug When a feature is broken and / or not performing as intended [Feature Group] Emails & Domains Features related to email integrations and domain management. labels Nov 26, 2015
@fabianapsimoes fabianapsimoes changed the title Upgrades: Email: Select site redirects to manage domains Domain Management: Email: Select site redirects to manage domains Nov 26, 2015
@klimeryk
Copy link
Contributor

@fabianapsimoes: is this still an issue for you? I'm guessing the emails already went out 😁

@fabianapsimoes
Copy link
Contributor Author

@klimeryk I believe that's a question for @breezyskies, as I just copied her initial post into this issue.

@klimeryk
Copy link
Contributor

Ooops, my bad 😖

cc: @rads who I talked to about this in AMS.

I was wondering about that - I've been to Amsterdam with Brie and Rads and I'm pretty sure you weren't there, but since it's such a popular meeting place, I figured maybe it was a different meetup. Now it makes sense 😆

@Tsarpf
Copy link
Contributor

Tsarpf commented Jan 21, 2016

... And I seem to have completely forgotten about this, sorry. I haven't looked at calypso in ... I guess I could say, months?

@klimeryk
Copy link
Contributor

Months? 😱 So you missed the migration to ASP.NET and SQL Server? 😏

@breezyskies
Copy link
Contributor

is this still an issue for you? I'm guessing the emails already went out

The emails did already go out, but I think this is still worth fixing because: 1) there will future email campaigns, 2) it's not consistent for it to redirect this way (no other section does and it's confusing that you can't link directly to the email tab).

@klimeryk
Copy link
Contributor

Roger that 👍 Will keep this one on our radar.

@umurkontaci umurkontaci added the [Pri] Normal Schedule for the next available opportuinity. label Jan 28, 2016
@umurkontaci
Copy link
Contributor

@mtias I've done some digging and this looks like this falls under your scope. (client/my-sites/controller.js:251 [how sourcePath is defined]) I've tried a couple of methods that makes it work for our case but many of the consumers of that function assumes prevPath is irrelevant and breaks.

@mtias
Copy link
Member

mtias commented Feb 9, 2016

@umurkontaci the my sites controller should be irrelevant here, the redirect should be handled by the upgrades bulk of route definitions. It seems quite intricate to read through, but the site selection screen is something you define for your path if you want to. I don't see it defined for domains/manage/email anywhere.

What I see is a paths.domainManagementEmail( ':site', ':domain' ) function that accounts for having a site fragment, and then there's a specfic upgradesController.redirectIfNoSite( paths.domainManagementRoot() ).

Other sections that want to enable the site selection screen for the no-sites case simply do:

page( '/menus/:site_id', controller.siteSelection, controller.navigation, menusController.menus );
page( '/menus', controller.siteSelection, controller.sites );

controller.sites renders site selection for that given route.

@mtias
Copy link
Member

mtias commented Feb 9, 2016

By the way, I think the upgrades/store routes should be cleaned up a bit and separated into smaller chunks that are easier to read and placed at the root of "my sites". I'd imagine groups for "plans", "domains", "checkout", etc, better reflecting the url structures (if you have a root url you should have a root folder section in "my sites").

This will also allow us to break the store into chunks for speedier loading, it's currently one of our biggest bundles. I'd also do more explicit route definitions following other sections in calypso.

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. Framework G Suite [Pri] Normal Schedule for the next available opportuinity. [Type] Bug When a feature is broken and / or not performing as intended
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants