Brought up in 840409-zen.
Alternatively, just try opening https://wordpress.com/sharing/SITEURL directly.
I expected to be able to use https://wordpress.com/sharing/mysiteurl without it redirecting to stats.
The sharing link redirects to /stats.
I tested and confirmed this issue for Jetpack/Atomic sites. (Simple sites work as expected.)
I also observed the issue with the following steps:
Result: You are redirected to the All Sites Stats page instead of Sharing for the selected site. (This only occurs the first time you switch to that site with these steps.)
This could be happening at two places in my-sites/controller: jetpackModuleActive or createSitesComponent
This came up also at p4TIVU-8Mo-p2
Reported in ticket 834449-zen
I tested with one site on this user's account after the user reported that they鈥檙e not able to access sharing settings.
When clicking the sharing link in the calypso dashboard for the affected site, to https://wordpress.com/sharing/SITEADDRESS it鈥檚 instead just redirecting to https://wordpress.com/stats
In this case, even visiting the direct URL when logged in (in an incognito window) makes the redirect occur. I was unable to find a way to access the sharing settings for this site.
It doesn鈥檛 seem like it happens for every site, but on this user鈥檚 account it is also happening on at least one other sit.
When testing with my own account, with many of my test sites the first time I click the sharing link the redirect happens, but going back and trying again it seems to go through to the right location.
Tested and confirmed that clicking My Sites > Sharing results in a redirect to /stats for Jetpack sites using the following testing steps:
https://wordpress.com/sharing/SITEURL directly.Result: sometimes the sharing settings page loads and sometimes it redirects to All Sites > Stats. When the page does load, refreshing the page causes the redirect again. When I try to load https://wordpress.com/sharing/SITEURL directly, I am always redirected to /stats.
Video: 1m23s
Seen at https://wordpress.com/stats/day/bh.testjetpack.blog::sub running WordPress 4.9.1 and Jetpack 5.7-beta-16672-ee48b7e-master hosted at Bluehost using Chrome 63.0.3239.84 on Mac OS X 10.13.1.
I couldn't replicate for my own blog, but when I test the squaremunkey account I see the following response header in Chrome Developer Tools > Network > [search for "sharing"]:
{"code":400,"headers":[{"name":"Content-Type","value":"application\/json"}],"body":{"error":"rest_invalid_signature","message":"La requ\u00eate n’est pas correctement sign\u00e9e."}}
This is a regression from #20192. Me and @jsnajdr will look into it during weekend or asap.
Also raised in 840016-zen.
Most helpful comment
This is a regression from #20192. Me and @jsnajdr will look into it during weekend or asap.