Plugins scripts/css and images are not relative
-
I have a fairly advanced use case issue that has broken this plugin for use for us. We are using the same WordPress site on multiple subdomains. One is behind a proxy for security reasons and we use the Any Hostname plugin (https://wordpress.org/plugins/any-hostname/) to run the same site on multiple domains.
Unfortunately, this plugin uses absolute URLS whenever it calls any of it’s scripts/css files and images which breaks the ability of the Any Hostname plugin to allow you to run it on more than one domain.
What happens is that the proxy blocking site is our primary site, and the non-proxy blocking site attempts to call some of the scripts they are being blocked by the proxy due to absolute urls.
This is forcing us to open up the proxy for all of the specific js/css/image files within this plugin’s directory.
A better approach would be if all of these urls were relative. If this could be supported in a future version, it would be greatly appreciated.
We are specifically trying to avoid customizing the plugin ourselves to make future updates easier.
The topic ‘Plugins scripts/css and images are not relative’ is closed to new replies.