Opening a Local HTML file with query strings

I have a few card templates that use local HTML files with parameters specified within the URL like:

<iframe src="_problemboard.html?Init=someFEN"></iframe>

This no longer works on anki 2.1.37 if I use the following:

<iframe src="_problemboard.html"></iframe>

this will load fine, however as soon as I try to initiate a query string with ‘?’ I get an Invalid path error code within my iframe

<iframe id="myIframe42"></iframe>

myIframe42.src = "_problemboard2.html"+"?Init={{text:FEN}}";

ok so I found a way around this issue using this javascript, not sure why this works but the iframe wont