# Umbraco Forms redirect not working on "redirectToPageId"

**URL:** <https://forum.umbraco.com/t/umbraco-forms-redirect-not-working-on-redirecttopageid/6813>\
**Category:** Questions\
**Tags:** v13, umbraco-forms\
**Created:** [November 28, 2025, 2:58am UTC](https://forum.umbraco.com/t/umbraco-forms-redirect-not-working-on-redirecttopageid/6813 "2025-11-28T02:58:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rockerby](https://forum.umbraco.com/user_avatar/forum.umbraco.com/rockerby/32/123_2.png) [@Rockerby](https://forum.umbraco.com/u/Rockerby)\
**Post date:** [November 28, 2025, 2:58am UTC](https://forum.umbraco.com/t/umbraco-forms-redirect-not-working-on-redirecttopageid/6813/1 "2025-11-28T02:58:18Z")

</div>

Hello Umbraco folk,

I’ve been looking at allowing the user to change the redirect page for a form with a content picker on a page (defaulting back to the redirect set on the form if not set).

I found the field `redirectToPageId` to which I can pass a GUID in of the page (as explained in [the docs](https://docs.umbraco.com/umbraco-forms/13.latest/developer/rendering-forms)). Unfortunately, I can’t get this to work - it always redirects the user to the redirect set in the default form workflow.

I’m rendering using the component like so:

`@await Component.InvokeAsync(“RenderForm”, new { formId = config.FooterForm, theme = “custom”, redirectToPageId = redirectPage.Value })`

Where `redirectPage` is a `Guid?` driven by a content picker. I’ve tried passing in a GUID and an integer - neither work. I also tried the `redirectUrl` param (just in case!)

Have I found a bug here or am I doing something daft?

Thanks!

---

<div class="post-metadata">

**Author:** ![rickbutterfield](https://forum.umbraco.com/user_avatar/forum.umbraco.com/rickbutterfield/32/3422_2.png) [@rickbutterfield](https://forum.umbraco.com/u/rickbutterfield)\
**Post date:** [November 28, 2025, 9:25am UTC](https://forum.umbraco.com/t/umbraco-forms-redirect-not-working-on-redirecttopageid/6813/2 "2025-11-28T09:25:00Z")

</div>

Hey @Rockerby!

I have just tried this in v13, v16 and v17 versions and I’m seeing the correct functionality when passing a GUID… 🤔

What version are you using? And are you setting any other redirects with a `FormsRedirectAfterFormSubmitUrl` item in the `HttpContext`? (as documented here [Extending | Umbraco Forms](https://docs.umbraco.com/umbraco-forms/developer/extending#:%5C~:text=In%20order%20to,ItemKeys.RedirectAfterFormSubmitUrl) )

---

<div class="post-metadata">

**Author:** ![Rockerby](https://forum.umbraco.com/user_avatar/forum.umbraco.com/rockerby/32/123_2.png) [@Rockerby](https://forum.umbraco.com/u/Rockerby)\
**Post date:** [November 28, 2025, 9:37am UTC](https://forum.umbraco.com/t/umbraco-forms-redirect-not-working-on-redirecttopageid/6813/3 "2025-11-28T09:37:03Z")

</div>

Morning @rickbutterfield - thanks for the response!

School-boy error forgetting to add the versions. I’m running Umbraco 13.11.0 with Forms 13.7.0 (initially tested on 13.6 but upgraded to 13.7).

I’m not setting the variable in the context, but if you’re getting this to work in a bare bone setup I’ll start from there and do some more digging.

---

<div class="post-metadata">

**Author:** ![Rockerby](https://forum.umbraco.com/user_avatar/forum.umbraco.com/rockerby/32/123_2.png) [@Rockerby](https://forum.umbraco.com/u/Rockerby)\
**Post date:** [December 22, 2025, 12:50pm UTC](https://forum.umbraco.com/t/umbraco-forms-redirect-not-working-on-redirecttopageid/6813/4 "2025-12-22T12:50:06Z")

</div>

Sharing my resolution, should anyone else find themselves in a similar position!

I had a custom theme for the form and I was missing the hidden field for the redirect from my `Render.cshtml` … No idea where it went, but popping this back in did the trick.

```php
@Html.HiddenFor(x => Model.RedirectToPageId, new { id = (string?)null })

```

---

<div class="post-metadata">

**Author:** ![system](https://forum.umbraco.com/uploads/default/original/1X/624adeddd330a3d0268a184db47946ca7e82c676.png) [@system](https://forum.umbraco.com/u/system)\
**Post date:** [January 21, 2026, 12:50pm UTC](https://forum.umbraco.com/t/umbraco-forms-redirect-not-working-on-redirecttopageid/6813/5 "2026-01-21T12:50:11Z")

</div>

Closed on January 21, 2026, 12:50pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
