I’ve tried troubleshooting the issue first, as well as searching around, but as of yet I haven’t found any info on the topic, so I thought I might ask here to clear all doubts.
I’m working on an online Staging Site hosted on a subdomain of my site (a SiteGround staging site, should it matter). The staging site is at ‘stagingsite.mysite.com’. I’ve already activated ‘JetPack Safe Mode’ for staging sites. The issue I’m having is with the ‘Top Posts & Pages (JetPack)’ Widget. I have ‘Image List’ active in the widget options. The problem is that the links to the images are also getting updated to the staging site subdomain, and thus the images don’t show (they get substituted by alternative text) which is a big issue for the utility of a staging site when working on visual aspects.
Since, for the ‘Top Posts’ widget, jetpack hosts the images at
'https://i2.wp.com/mysite.com/...', and when I create the staging site those links get changed to
'https://i2.wp.com/stagingsite.mysite.com/...', the images are of course 404. Since JetPack already knows it is a Staging Site (hence prompting me to activate ‘Safe Mode’) is there any way to get JetPack to not change those image urls to the staging site subdomain? I’m not sure if JetPack is assuming the domain from the ‘WP_HOME’/’WP_SITEURL’ values, but it’s an issue nonetheless. Given that JetPack decides the posts/links that go in that Widget, I’m not sure which would be the proper way to fix those links as they may change.
As far as fixes, I’ve tried playing around with redirecting them via the Redirection Plugin inside WordPress, as well as through .htaccess, but I haven’t had any success so far. Since it’s the on page image that is not found, as opposed to clicking on an actual link, I’m not even sure those methods would work. Note – I don’t have ‘Enable site accelerator’ active, so it isn’t a JetPack CDN issue.
Before spending any further time on the subject I thought I might ask if this is a known issue and there’s some recommended fix? I know this isn’t exactly JetPack’s “fault”, but maybe you guys are already familiar with it.
Thanks ahead for any help.
- The topic ‘Issue with JetPack ‘Top Posts’ widget images on Staging Site’ is closed to new replies.