Redirect to unstyled search results page after completing editorial action on page
alxbridge opened this issue · comments
Alex Bridge commented
Issue Summary
When doing an admin-wide search, results pulled in via XMLHttpRequest use an incorrect next
querystring parameter in their action links. This means that editors are brought to an unstyled search results page on completing their action.
Steps to Reproduce
- Start a new project and create test content which can be searched for
- Navigate to /admin/pages/search/
- Enter a search query into the box at the top of the page
- Open the
...
action menu for one of the search results, and choose the Edit (*) action. - Edit the page and publish it
- The browser is redirected to /admin/pages/search/results/, which is unstyled.
- Expected behaviour: the
next
parameter ends the action journey on /admin/pages/search/.
(*also applies to any action which sets a next
parameter in its link querystring)
Screenshots
This appears to be similar to #11177
- I have confirmed that this issue can be reproduced as described on a fresh Wagtail project: yes
Technical details
- Python version: 3.10.12
- Django version: 5.0.3
- Wagtail version: 6.0.2
- Browser version: Firefox 125.0
Matt Westcott commented
Confirmed on current main branch.
Roushan Singh commented
Can I take this one
Matt Westcott commented
Fixed in #11881