Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Steps to reproduce:
- Create a facet with machine name "foo" and save it
- Edit the facet, and change the machine name to "bar"
- The change is successfully changed, but after form submit you are redirected to "admin/config/search/facets/foo/settings", which no longer exists
The expected behavior would be to redirect to "admin/config/search/facets/bar/settings", or at least "admin/config/search/facets"
Comment | File | Size | Author |
---|---|---|---|
#5 | changing_facet_machine-2763181-5.patch | 2.22 KB | borisson_ |
Comments
Comment #2
alan-ps CreditAttribution: alan-ps commentedI think that we should forbid changing entities' IDs (as it was done for search api index/server), because it can cause additional troubles. I've created appropriate patch for reviewing.
Comment #5
borisson_We actually have a test that checks this, we added that in #2629504: Changing a facet's machine name redirects to page not found on submit..
So that test isn't good enough. I agree with not changing the ID though. So I just removed the old test, will put this to RTBC and hold off on feedback from others before committing.
Comment #6
borisson_Committed, thanks.