- Issue created by @alex.bukach
- Issue was unassigned.
- Status changed to Needs review
over 1 year ago 11:49am 8 September 2023 - last update
over 1 year ago 30,341 pass - Status changed to Needs work
over 1 year ago 3:25pm 8 September 2023 - 🇺🇸United States smustgrave
Thanks for reporting.
Could use a small test case.
- last update
about 1 year ago 29,722 pass - Status changed to Needs review
about 1 year ago 5:28am 22 December 2023 - Status changed to Needs work
about 1 year ago 10:05pm 23 December 2023 - 🇺🇸United States smustgrave
Recommend using MRs
Tried replicating this and I get redirected back to the node page, which seems correct.
- Merge request !5962Fix for discard layout builder button when destination query parameter exists → (Open) created by Abhijith S
- Status changed to Closed: cannot reproduce
9 months ago 3:30am 16 April 2024 - 🇳🇿New Zealand danielveza Brisbane, AU
On a fresh D11 install I'm also unable to replicate this.
Something else to flag is that on /admin/content on a fresh D11 install there is no layout action out of the box. So there may be a custom or contributed module that is interferring here.
Since steps to replicate were asked for over 3 months ago and nothing has been provided I'm marking this issue as closed. If you're able to provide steps to replicate please feel free to reopen or add a new issue.
Thanks!
- Status changed to Needs review
7 months ago 2:04pm 29 June 2024 - 🇨🇾Cyprus alex.bukach
@DanielVeza I am still able to reproduce it on a fresh Drupal 11 setup. Here are the steps:
- Navigate to a page /node/[nid]/layout?destination=[destination].
- Click "Discard changes".
- Get redirected to the [destination] page instead of /node/[nid]/layout/discard-changes
Here's an updated patch.
- Status changed to Needs work
7 months ago 6:35pm 29 June 2024 - 🇺🇸United States smustgrave
Will need to be an MR and have test coverage too
Thanks
- Status changed to Needs review
7 months ago 7:16pm 29 June 2024 - Status changed to RTBC
7 months ago 2:04pm 2 July 2024 - 🇺🇸United States smustgrave
Thanks removing tests tag with coverage here https://git.drupalcode.org/issue/drupal-3386094/-/jobs/1999033
Summary appears to be complete and manual testing proves it works as advertised.
LGTM
- 🇳🇿New Zealand danielveza Brisbane, AU
Ran the tests only feature since I couldn't replicate this in #9. Test fail as the steps to replicate have described, so I expect that was an issue in my local testing.
Code changes look good, I was debating if we should add a
$this->getRequest()->query->has('destination')
check around it, but since no other processing is being done to the destination I think it's safe to just run the remove.$this->getRequest()->query->remove('destination');
does an unset of the param passed, if it doesn't exist there should be no issue. - Status changed to Needs review
6 months ago 11:48pm 21 July 2024 - Status changed to RTBC
6 months ago 3:06pm 23 July 2024 - 🇺🇸United States smustgrave
@larowlan believe that is correct. Way I understand is that the discard button is taking you back to /entity_test/1/layout vs /admin/content
- Status changed to Needs work
6 months ago 6:55pm 23 July 2024 - 🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10
The text only fail isn't going to admin/comment is what I'm saying