@psychobunny Applied fix, 86% solved.
URL is now q&a. Assuming because & gets run through the next line in your fix, which removes the ;.
Clicking this link will cause a 404 error, hard refresh the page and it loads fine. May be worth checking for siteURL/api/ and opening that in a new tab or something as a workaround.