-
-
Notifications
You must be signed in to change notification settings - Fork 19
Post content showing links and media assets from the original URL #22
Comments
A temporary solution is adding a filter to the theme's
WARNING: before you go ahead and change your You may also refer to the WP reference on |
I can confirm there is such issue. I also can see the media links pointing back to other domain. This is an issue for our company as we access the wp-admin from internal subnets and these internal subnet domain is then listed publicly in <img src="internal-domain.company.com">. The result is the address of our internal domain leaks and the media image resource is not visible for our clients. Can this be fixed any soon please? |
btw: the proposed temporary solution doesn't fix the issue for me. I still can see <img src="https://internal.company.com\> in the post when I try to access it on https://company.com site |
@tbrandysky Could you check if the new release ( |
Unfortunately we still see the same behaviour as I described in my previous post. |
As noticed by @tbrandysky, assets can still be loaded from a URL different than the current one. Let's say a site's current multiple domain setup is:
If an asset is added to a post content from To fix this issue, the plugin must walk the entire list of domains and replace any occurrence with the current domain. This will be fixed on 0.8.1. The following snippet is a temporary solution. Add it to your theme's
|
I can confirm that this solution works. |
I've found out there still is a request to get that data from example.com even when accessing site on example.net: accessing WP at https://example.net that part of source HTML with wrong URL reference: <style type="text/css"> #site-header { background-image: url(https://example.com/wp-content/uploads/2018/09/architecture-blur-bright-440313_2.jpg); background-size: cover; } |
another thing is that the plugin always redirects users to https even when site is HTTP only |
Fix #22. Improved verification that checks whether SSL is in use.
Let's say one has set up the plugin with two different domains:
foobar.net
andfoobar.com
, wherefoobar.net
is the original domain. When pointing the browser tofoobar.com
, all links and media assets added to post content will have the original domain.This happens because the plugin doesn't filter the post content to replace the original domain with the current one. I don't think this should be enforced, though. An option to enable this filter is the best way to handle cases like this, letting the site admin decide whether they want to keep the original URL.
The text was updated successfully, but these errors were encountered: