We are using a secondary brand to capture the responses to a specific type of request. The HC has basically been disabled from doing anything other than being the support form, and the home page is basically just one button to go to the support form. (Basically this)
My starting point was a form redirect based off the javascript method for redirecting from deleted HC articles. We merged 5 forms into one. When they use a URL to one of the old form IDs, the script updates the ID in the URL to the new one AND it also adds an autofill parameter to select the initial question that replaced the other options.
Can this be done with the bare support URL on page load?
The script on the right works in our primary HC, but the one on the left hits an endless loop in our secondary HC.

I've tried to change the window location element to include just the domain, and to include the full URL with "hc/en-us/requests/new?", and they both keep looping
window.location.href = 'https://yoursitetwo.zendesk.com/' + newIds[i];
I feel like there's some limiting condition that I need like "var oldIds aren't followed by 'ticket_form_id'.
It's originally copypasta, so maybe I'm missing something simple.