{"id":11438404,"date":"2019-04-17T12:39:21","date_gmt":"2019-04-17T12:39:21","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/internal-link-in-multisite-installation\/"},"modified":"2019-04-17T12:39:21","modified_gmt":"2019-04-17T12:39:21","slug":"internal-link-in-multisite-installation","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/internal-link-in-multisite-installation\/","title":{"rendered":"Internal link in multisite installation"},"content":{"rendered":"<p>Hello,<\/p>\n<p>we recently switched to Lightbox with Photoswipe from the old Boxers and Swipers plugin.<\/p>\n<p>Somehow I can&#8217;t get Photoswipe to work with internal links. This is unfortunate, because our multisite installation (&#8220;invisible&#8221; parent site, plus 2 child installations for English and local language) currently sits in a subdomain and will be moved to the main domain once it&#8217;s finished.<\/p>\n<p>With the old plugin, internal links (\/wp-content\/ourfiles\/sites\/2\/image.jpg) worked fine, but Lightbox with Photoswipe seems to need the whole thing (http:\/\/sub.domain.com\/en\/wp-content\/ourfiles\/sites\/2\/image.jpg).<\/p>\n<p>Is there a way to shorten those links or some other workaround? I don&#8217;t want to edit hundreds of image links once the page goes live.<\/p>\n<p>Thanks.<\/p>\n","protected":false},"template":"","class_list":["post-11438404","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/11438404","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/11438404\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=11438404"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}