Skip to content

fix redirects when handling broken submissions #4778

@Bubballoo3

Description

@Bubballoo3

We currently handle failed WorkflowController#create actions by collecting the errors in the object and redirecting to the original new form. However as soon as we click save and call the create action, the page redirects from ...workflows/new to .../workflows, and this persists even if the create action is unsuccessful. While this usually isn't an issue, since this would take you to the index, there is no index action defined on workflows and this leads to an error. We should either keep the url the same through validation and correction (on the new path) or make .../workflows an alias for ProjectsController#show, which fills the workflow index function.

Metadata

Metadata

Assignees

Type

Projects

Status

In Progress ✈

Relationships

None yet

Development

No branches or pull requests

Issue actions