elsa-workflows / elsa-workflows/elsa-core
Workflow instance page is redirected to first page when an WF instance is selected
- Dominant language
- C#
- Stars
- 7.9k
- Forks
- 1.5k
- Avg merge
- 15h 22m
- Merged PRs (30d)
- 114
Description
## Description
On the **Workflow Instances** page (`/workflows/instances`), if the user navigates past page 1 and then interacts with any row (toggling its selection checkbox), the table snaps back to page 1 and the URL query string is rewritten from `?page=N` back to `?page=1`.
The same anti-pattern exists on the **Workflow Definitions** list, with the same symptom.
## Steps to Reproduce
1. Open Elsa Studio.
2. Navigate to **Workflows → Instances**. Make sure there are enough instances to require at least two pages (e.g. > 10 with the default page size).
3. Using the pager at the bottom of the table, navigate to page 2 (or any page other than page 1). Confirm the URL becomes `…/workflows/instances?page=2&pageSize=10`.
4. Toggle the selection checkbox on any row.
**Reproduction Rate**: Every time.
## Expected Behavior
- After paginating to page 2+, clicking a row or toggling its selection checkbox leaves the table on the current page.
- The URL query string keeps reflecting the current page (`?page=2`).
- After clicking a row to view an instance and then pressing the browser back button, the list returns to the page the user was on.
## Actual Behavior
- The table immediately snaps back to page 1.
- The URL is rewritten to `?page=1`.
- After viewing an instance and pressing back, the list is shown at page 1 regardless of which page the user was on.
## Environment
- **Elsa Package Version**: 3.6.1 and 3.7.0-rc
- **Operating System**: Windows 10
- **Browser and Version**: Chrome 148
Contributor guide
Assessment
This issue has not been assessed yet.