redirectUrl in hs_context for v2 form uploads endpoint no longer working

We have some forms on our website which submit to the form uploads v2 endpoint that we’ve been using for the last 4+ years. Recently we’ve noticed they have stopped working as expected. Specifically, we use the “hs_context” as a hidden input that generates a redirectUrl dynamically which is used as a callback to an endpoint on our web server.

What we noticed was that it was redirecting to a static URL conigured in the form vs. the dynamic one we were passing into the endpoint via hs_context.

According to this documentation https://legacydocs.hubspot.com/docs/methods/forms/v2/submit_form it does say that HubSpot will use the URL setup in the UI over the one passed into the form via hs_context.

That said, I cannot figure out how to setup a form in HubSpot now that will allow for the redirectUrl to be honored. If I setup a new form and don’t configure a Redirect URL in the form Options setting, but I pass in hs_context, the form just sends back a 204 response with the default thank you message.

This page https://legacydocs.hubspot.com/docs/methods/forms/v2/submit_form provides an example that uses hs_context with a redirectUrl, but after creating a new form and trying to use this exact example I cannot find a way that HubSpot will honor the redirectUrl passed in.

To reiterate, we have existing forms that have been successfully using hs_context with the redirectUrl for many years which delivered the user to the redirectUrl we specified in the hs_context. This has stopped working and the only behavior on form submission now seems to be that the thank you message or a static redirectu URL are the only options (which breaks our current integration).

I know we should be updating to the latest API for form submission, and I can look into that in the future, but want a way to keep my current forms working with the v2 version as they have been up until recently. Can anyone confirm if there is a way to keep using the redirectUri function on the v2 form uploads endpoint?

Hi, @PNordstrom :waving_hand: Thanks for reaching out. Thank you for providing those details.

Hey @Anton @Teun, have you tackled anything similar?

Thank you very much for taking a look! — Jaycee