Automattic / notifications-panel

Core notifications panel for WordPress.com notifications
0 stars 1 forks source link

Stats spike notification doesn't link to primary domain #269

Open rachelmcr opened 6 years ago

rachelmcr commented 6 years ago

When a site gets a stats spike, we display this notification:

screenshot 2018-04-20 10 59 48

The "your stats" link at the bottom links here:

https://wordpress.com/stats/day/[SITE_ADDRESS]?startDate=[YYYY-MM-DD]

However, the [SITE_ADDRESS] is always the site's free .wordpress.com address, even if the site has a different primary domain. If the free address isn't the primary domain, that link redirects to the all sites view here:

https://wordpress.com/stats/day

This could also be handled on the Calypso side by handling non-primary domains — I opened a new issue for that here: https://github.com/Automattic/wp-calypso/issues/24359