{"id":13628525,"date":"2020-11-06T08:30:41","date_gmt":"2020-11-06T08:30:41","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/model_url-param\/"},"modified":"2020-11-06T08:36:59","modified_gmt":"2020-11-06T08:36:59","slug":"model_url-param","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/model_url-param\/","title":{"rendered":"model_url param"},"content":{"rendered":"<p>Hi,<\/p>\n<p>Thank you for the great plugin!!!<\/p>\n<p>I tried to use a root relative URL for my <code>model_url<\/code> parameter but the plugin seems to convert it to relative to your plugins directory.  For example, if I use:<\/p>\n<p><code>model_url=&quot;\/wp-content\/uploads\/3d\/myfile.fbx&quot;<\/code><\/p>\n<p>the resulting url is:<\/p>\n<p>https:\/\/example.com\/wp-content\/plugins\/vrm360\/demo\/\/wp-content\/uploads\/3d\/DemoSpace%20v3.fbx<\/p>\n<p>But if I use an absolute URL, it seems to use the correct location:<\/p>\n<p><code>model_url=&quot;https:\/\/example.com\/wp-content\/uploads\/3d\/myfile.fbx&quot;<\/code><\/p>\n<p>Is there any way to use a root relative URL so when I deploy my site from dev to production, I don&#8217;t need to update this path?<\/p>\n<p>thanks!<br \/>\nSteve<\/p>\n","protected":false},"template":"","class_list":["post-13628525","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/13628525","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":2,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/13628525\/revisions"}],"predecessor-version":[{"id":13628531,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/13628525\/revisions\/13628531"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=13628525"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}