zzxiang / external-media-without-import

A WordPress plugin which enables you to add external images to the media library without importing, i.e. uploading them to your WordPress site.
GNU General Public License v3.0
129 stars 41 forks source link

Multisite / Network #13

Open aguatye opened 5 years ago

aguatye commented 5 years ago

This isn't working with the gallery shortcode on a multisite network.

It works on the main site, but for all networked sites it adds the url before

eg: https://multi.site.com/https://www.externalsite/imageurl.jpg

zzxiang commented 5 years ago

It is the first time that I heard about multisite network and such a URL as http://xxx/http://yyy.jpg. May I get a real world example to investigate the issue?

aguatye commented 5 years ago

Hey - I replied on Wordpress, but lets continue on here instead

Can I send you via email / private message to give you the url & login?

I didn’t explain very well – but if I upload the external media on the main network – then the external media url works perfectly:

https://www.external-url.com/img.jpg

When I try to access this media in one of the network sub blogs, the external media url becomes:

https://sub-blog.com/site2/wp-content/uploads/sites/2/https://www.external-url.com/img.jpg

zzxiang commented 5 years ago

I just learnt how to use the multisite feature of WordPress. However, I still don't know how to reproduce the problem.

Yes, you can reach me via my email address zzxiang21cn@hotmail.com.

You can also upload some screenshots here to help describe the problem.