After updating to latest version, local links seems to have broken. Upon inspection, it appears the links are broken because the trailing slash on the domain is missing.
Hey @453twgreg, Welcome to the Local Community Forums!
I’m having trouble replicating this on my end. I tried creating a new site while using the localhost router mode. From there I create a custom menu within the WP admin, with a couple of child menu items.
Using the default TwentyTwenty theme, everything appears to be working correctly. Have you tried exporting the site and re-importing it into Local?
Another thing to explore is how those menu items are being generated. Is this a custom theme, or in some way using a custom Walker class?
@ben.turner I can’t speak for the original poster, but I am also experiencing this issue.
For me, it seems to happen only when pulling down sites that use the Divi theme. I have not had the issue occur when using a custom theme that uses a custom Walker class.
I created a post here about it before seeing this post. This was not an issue for me prior to installing the latest update.
Any help resolving this issue would be appreciated. Thank you.
When I pull a site down that has Divi installed, some of the assets (images, videos, etc) are broken. Not all assets are broken, but the majority are, including the logo image. I found that the file paths are incorrect, due to a single missing forward slash.
The images are not broken on the live sites, and I can’t figure out why the slash isn’t included on local sites. I am using the latest version of Local. Any help would be appreciated! Thanks.
Thanks for pinging me, I’ve merged your topic with this one so that we can keep the related information together!
You mention that this wasn’t an issue until the recent update – do you remember which version of Local you updated from?
It’s interesting that the remote site’s domain has www but the local one doesn’t. I wouldn’t think that would cause issues, but maybe? Can you see if both those versions of the domain are present in the database? I think you can get that info by right-clicking on the site and issuing:
wp db search 'site-name.local'
Also, since this sounds like Divi may be related, have you poked around in the Divi settings to see if doing something like flushing the cache helps?
One other thing to try – since this seems related to WordPress’ routing layer, can you try flushing the permalinks by navigating to “Settings > Permalinks” and click the “Save Changes” button?
Thanks for your quick reply! I don’t recall which version number I had prior, but I always update when I get the update notice. I assume it was the release prior to the latest one.
I have pulled down a variety of sites, and this issue happens whether the site on the server has www or not. There are no instances of the www domain in the database, only the local domain.
I have checked all the Divi settings, cleared all Divi caches, etc. I also checked the live site settings, and everything is as it should be. The trailing slash just seems to disappear when it’s pulled down in Local, and I have no idea why.
I tried saving Permalinks, but it did not change anything or solve the issue.
I want to also note that my co-worker is having the same issue. He is on Mac OS, so this is not just a Windows issue.
I see that the url is using HTTPS – Have you been able to isolate this to being only an issue with Divi – for example, if you change to a default theme, does the URL resolve itself?
I have seen issues when “force https” plugins are used because they can try and change the URL before the actual server software (nginx/apache) get’s a chance to fully resolve the URL.
Also, does this only happen after using Connect? If you create a new, plain WordPress site and install Divi, does the URL get mangled as well?
We only use Divi or our own custom theme, so I cannot say if other themes have the issue. I have confirmed that when I pull down a site that uses our custom theme, the asset paths are correct. I have tried changing the Divi theme back to the default theme, but it does not resolve the issue.
There are no plugins installed to force https. We just have WordPress Address (URL) and Site Address (URL) set to https in Settings > General.
This only happens when using Connect, or pulling from WP Engine. If I create a new site and then install Divi after the fact, the asset paths are not missing the slash. It only happens when I pull down an existing site that already has Divi installed.
I also tried to downgrade back to an older version of Local. I then pulled a Divi site down, but the issue persisted.