Problem/Motivation
Currently a user has to have the 'administer redirect settings' permission to save the ignore, because the ignored path needs to be saved on the form.
Steps to reproduce
Proposed resolution
Save the ignore in '\Drupal\redirect_404\Controller\Fix404IgnoreController::ignorePath' and redirect according to permission.
Comments
Comment #2
primsi commentedInitial patch.
Comment #4
berdirI frequently change the provided pattern and instead make it a wildcard, I think it makes sense to keep the behavior for admins for now. Maybe two separate operations (ignore and customize..) or something could make sense, we can look into that later.
Comment #5
primsi commentedReverted that back. We then probably need to test the non-admin functionality.
Comment #6
primsi commentedThe other part where the permission is checked.
Comment #7
berdirthere is another langcode argument here that I think we should drop in the the other issue. Will probably conflict though, lets get one in and then reroll the other.
The "but save config directly" sounds strange, also due to two "but" in a row. I think we can possibly just drop that part, seems pretty clear.
Also, maybe just get the editable config from the start
And yes, we definitely need tests, because I don't actually see you adding the new path to the list, you just trim the existing ones and then save them back. I don't think we need that loop at all, if you look at redirect_404_form_redirect_settings_form_alter(), we just add the new one to the list, can't we do the same here?
Comment #8
primsi commentedAddressed and added test.
Comment #10
berdirCommitted.