I’m working on a project which passes a variable into a iFrame with this code:
jQuery(function() {
var search = window.location.search;
jQuery(".iframe-wrapper").attr("src", jQuery(".iframe-wrapper").attr("src")+search);
});
But, when I pass through §ion=P1
in a URL, it just gives a 404.
Source of the iFrame: example.com/page?cart=1
After going to site.com/§ion=P1
the iFrame should change to example.com/page?cart=1§ion=P1
Anyway to pass through the §ion=P1
through the URL?
Please send your HTML as mine is working fine with the below: