Redirect to collection index page after smart action success whatever the environment and the team are

I want to redirect the user to the collection index page after the smart action success with this:

response.send({ success: message, redirectTo: <PATH_TO_INDEX> })

Actual behavior

The correct path depends on the environment and the team of the user.

Is there any internal way to dynamically set the correct path for the redirection?

Context

 "meta": {
    "liana": "forest-express-mongoose",
    "liana_version": "7.8.2",
    "stack": {
      "database_type": "MongoDB",
      "engine": "nodejs",
      "engine_version": "12.22.1",
      "orm_version": "5.9.4"
    }
  }

Hi @Guiguijo,

Please have a look at this answer to another post, I think it matches perfectly to your need.
Let me know

Regards

1 Like

thanks @Sliman_Medini