$ echo "[{{1x|1=https://foo.bar?foo=bar]}} bar]" | php bin/parse.php <p data-parsoid='{"dsr":[0,43,0,0]}'>[<a rel="mw:ExtLink nofollow" href="https://foo.bar?foo=bar%5D" about="#mwt4" typeof="mw:Transclusion" class="external free" data-parsoid='{"stx":"url","a":{"href":"https://foo.bar?foo=bar%5D"},"sa":{"href":"https://foo.bar?foo=bar]"},"pi":[[{"k":"1","named":true}]],"dsr":[1,38,null,null]}' data-mw='{"parts":[{"template":{"target":{"wt":"1x","href":"./Template:1x"},"params":{"1":{"wt":"https://foo.bar?foo=bar&#93;"}},"i":0}}]}'>https://foo.bar?foo=bar]</a> bar]</p> $ echo "[{{1x|1=https://foo.bar?foo=bar]}} bar]" | php ../core/maintenance/parse.php <p><a rel="nofollow" class="external text" href="https://foo.bar?foo=bar%5D">bar</a> </p>
This was reported here.