# redirectTo smart action doesn't work properly

**URL:** <https://community.forestadmin.com/t/redirectto-smart-action-doesnt-work-properly/3937>\
**Category:** Help me!\
**Created:** [December 22, 2021, 8:47am UTC](https://community.forestadmin.com/t/redirectto-smart-action-doesnt-work-properly/3937 "2021-12-22T08:47:18Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![huss](https://avatars.discourse-cdn.com/v4/letter/h/dfb087/32.png) [@huss](https://community.forestadmin.com/u/huss)\
**Post date:** [December 22, 2021, 8:47am UTC](https://community.forestadmin.com/t/redirectto-smart-action-doesnt-work-properly/3937/1 "2021-12-22T08:47:18Z")

</div>

hello,

i am trying to implement a smart action that has a form and takes some data from the user and then redirects to a different page on submission but the redirection does not work properly.

i get redirected to a page like the one below

 ![Screen Shot 2021-12-22 at 11.44.54 AM](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/4/46df4a366a764b52a46ef0d68db0bb6ce8f286fd.png)

and here is the action’s definition

 ![Screen Shot 2021-12-22 at 11.46.11 AM](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/d/dc650d52240c1713301b4000efd77854cf298a0a.png)

Thank you!

---

<div class="post-metadata">

**Author:** ![anon62739609](https://avatars.discourse-cdn.com/v4/letter/a/c2a13f/32.png) [@anon62739609](https://community.forestadmin.com/u/anon62739609)\
**Post date:** [December 22, 2021, 9:09am UTC](https://community.forestadmin.com/t/redirectto-smart-action-doesnt-work-properly/3937/2 "2021-12-22T09:09:03Z")

</div>

Hey @huss,

Could you please try with an `https` url ?  
Plus does it open a new tab or is it opening in the current tab ?

---

<div class="post-metadata">

**Author:** ![huss](https://avatars.discourse-cdn.com/v4/letter/h/dfb087/32.png) [@huss](https://community.forestadmin.com/u/huss)\
**Post date:** [December 22, 2021, 9:27am UTC](https://community.forestadmin.com/t/redirectto-smart-action-doesnt-work-properly/3937/3 "2021-12-22T09:27:07Z")

</div>

- i get the same result with https.
- and the page opens up in a new window completely.

---

<div class="post-metadata">

**Author:** ![anon62739609](https://avatars.discourse-cdn.com/v4/letter/a/c2a13f/32.png) [@anon62739609](https://community.forestadmin.com/u/anon62739609)\
**Post date:** [December 22, 2021, 9:29am UTC](https://community.forestadmin.com/t/redirectto-smart-action-doesnt-work-properly/3937/4 "2021-12-22T09:29:05Z")

</div>

Do you have any issue in you web console ?  
Could you share a video reproducing this error ?

---

<div class="post-metadata">

**Author:** ![huss](https://avatars.discourse-cdn.com/v4/letter/h/dfb087/32.png) [@huss](https://community.forestadmin.com/u/huss)\
**Post date:** [December 22, 2021, 9:29am UTC](https://community.forestadmin.com/t/redirectto-smart-action-doesnt-work-properly/3937/5 "2021-12-22T09:29:56Z")

</div>

it actually downloads a file named “file” with .json extension

---

<div class="post-metadata">

**Author:** ![huss](https://avatars.discourse-cdn.com/v4/letter/h/dfb087/32.png) [@huss](https://community.forestadmin.com/u/huss)\
**Post date:** [December 22, 2021, 9:32am UTC](https://community.forestadmin.com/t/redirectto-smart-action-doesnt-work-properly/3937/6 "2021-12-22T09:32:21Z")

</div>

i apologize, i just realized i had the “download” property for the smart action set to true  
i removed that flag and now it works fine.

Than you!

---

<div class="post-metadata">

**Author:** ![anon62739609](https://avatars.discourse-cdn.com/v4/letter/a/c2a13f/32.png) [@anon62739609](https://community.forestadmin.com/u/anon62739609)\
**Post date:** [December 22, 2021, 9:43am UTC](https://community.forestadmin.com/t/redirectto-smart-action-doesnt-work-properly/3937/7 "2021-12-22T09:43:13Z")

</div>

Ahah okey good to know 🙂

Merry Christmas 🎅 !
