Heya,
I'm using Foundation Interchange (https://foundation.zurb.com/sites/docs/interchange.html) in combination with the following code in my page's layout:
{variable tab="Hero Banner" name="hero_xsmall" label="Background Image (phone < 480px; fallback if no other size present)" type="mediafinder"}{/variable}
{variable tab="Hero Banner" name="hero_small" label="Background Image (phablet 480px ~ 767px)" type="mediafinder"}{/variable}
{variable tab="Hero Banner" name="hero_medium" label="Background Image (tablet 768px ~ 1023px)" type="mediafinder"}{/variable}
{variable tab="Hero Banner" name="hero_large" label="Background Image (netbook 1024px ~ 1399px)" type="mediafinder"}{/variable}
{variable tab="Hero Banner" name="hero_xlarge" label="Background Image (laptop 1400px ~ 1799px)" type="mediafinder"}{/variable}
{variable tab="Hero Banner" name="hero_xxlarge" label="Background Image (desktop > 1800px)" type="mediafinder"}{/variable}
<section id="hero"
{% if hero_xsmall is defined %}
data-interchange='
{% if hero_xsmall is defined %} ["{{ hero_xsmall|media }}", xsmall], {% endif %}
{% if hero_small is defined %} ["{{ hero_small|media }}", small], {% endif %}
{% if hero_medium is defined %} ["{{ hero_medium|media }}", medium], {% endif %}
{% if hero_large is defined %} ["{{ hero_large|media }}", large], {% endif %}
{% if hero_xlarge is defined %} ["{{ hero_xlarge|media }}", xlarge], {% endif %}
{% if hero_xxlarge is defined %} ["{{ hero_xxlarge|media }}", xxlarge] {% endif %}'
{% endif %}
class="grid-x align-bottom">
...
</section>
The code works perfectly fine on the website itself.
It only breaks when visiting the static page generated by the plugin (I also tried opening the generated page without the iframe, with the same result).
It stops breaking once I remove the quotes encapsulating the respective media twig elements (but that will break the website when the customer uploads an image containing whitespaces in their names...).
The full request is http://dockerhost/backend/frozendo/pagepreview/preview/static-page/%22/storage/app/media/%22. It seems that something is wrong with the way the plugin generates/handles relative links. If it helps any, I tried switching the double quotes for single quotes, which caused the XHRs to request ' instead of %22.
Sorry to bother you with this - thanks in advance for your help!
-Harti