# Opening a Local HTML file with query strings

**URL:** <https://forums.ankiweb.net/t/opening-a-local-html-file-with-query-strings/6016>\
**Category:** Help\
**Created:** [December 24, 2020, 8:59pm UTC](https://forums.ankiweb.net/t/opening-a-local-html-file-with-query-strings/6016 "2020-12-24T20:59:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Towel\_Sniffer](https://avatars.discourse-cdn.com/v4/letter/t/e95f7d/32.png) [@Towel\_Sniffer](https://forums.ankiweb.net/u/Towel_Sniffer)\
**Post date:** [December 24, 2020, 8:59pm UTC](https://forums.ankiweb.net/t/opening-a-local-html-file-with-query-strings/6016/1 "2020-12-24T20:59:33Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Towel\_Sniffer](https://avatars.discourse-cdn.com/v4/letter/t/e95f7d/32.png) [@Towel\_Sniffer](https://forums.ankiweb.net/u/Towel_Sniffer)\
**Post date:** [December 25, 2020, 2:31pm UTC](https://forums.ankiweb.net/t/opening-a-local-html-file-with-query-strings/6016/2 "2020-12-25T14:31:58Z")

</div>

`<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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/8f1279ababc5879d54e4838989f606cfe55af8c7.jpeg) [@system](https://forums.ankiweb.net/u/system)\
**Post date:** [May 1, 2023, 5:19am UTC](https://forums.ankiweb.net/t/opening-a-local-html-file-with-query-strings/6016/3 "2023-05-01T05:19:24Z")

</div>

Closed on May 1, 2023, 5:19am UTC


