Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In a workflow, when I use a prompt to redirect the user to a record page, it does not open in edit mode #1757

Closed
1 task done
lennyhorstink2 opened this issue Apr 10, 2024 · 1 comment · Fixed by #1775
Closed
1 task done
Assignees
Labels
bug Something isn't working
Milestone

Comments

@lennyhorstink2
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Version of Corteza

2023.9.5

Current Behavior

I need to redirect the user to a page in edit mode. This works when I come from a list page (a normal page) and open a record page, but, if I am on the record page and I want to open the next record after saving, it does not open in edit mode.

The workflow is as follows:

  1. The trigger runs on "afterUpdate".
  2. A function searches for the next record
  3. The function returns a record
  4. I redirect the user to that record in edit mode

It redirects the user, but not in edit mode. It's curious because the URL does include /edit at the end. And if I refresh the page with F5, it does open in edit mode.

Some additional info: this workflow makes it easy to fill in a questionnaire built in Corteza, answering question after question. If the user has to click "edit" every time he moves to the next question, it becomes tedious for the user.

Expected Behavior

After redirecting with "edit" checked in the prompt block, it should open the record in edit mode.

Steps To Reproduce

No response

Environment and versions

Tested on Firefox and Chrome. Happens on both.

Anything else?

No response

@Fajfa Fajfa added the bug Something isn't working label Apr 12, 2024
@Fajfa Fajfa added this to the 2023.9.6 milestone Apr 22, 2024
@lennyhorstink2
Copy link
Author

For clarification of my description I created a screenshore: https://drive.google.com/file/d/1n1Nzn2x3uc1h1QiM6Bpi9eK8Gj-RSjS8/view?usp=sharing

@petergrlica petergrlica assigned Fajfa and unassigned katrinDY Apr 23, 2024
@Fajfa Fajfa linked a pull request Apr 23, 2024 that will close this issue
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants