Describe the bug
_Using version: 5.2.2
When changing a redirect from regex to old url, any url starts redirecting to this target
To Reproduce
Steps to reproduce the behavior:
Create redirect with regex
Submit
Edit redirect, remove regex and enter old url
Submit
See the issue
Expected behavior
Only the url that matches the old url should redirect to the new url
Additional contextThis method here only filters out redirects where sourceregex is null. It should also filter out source regex with empty string.
When editing redirects, empty strings should be converted to null
Describe the bug _Using version: 5.2.2 When changing a redirect from regex to old url, any url starts redirecting to this target
To Reproduce Steps to reproduce the behavior:
Expected behavior Only the url that matches the old url should redirect to the new url
Additional context This method here only filters out redirects where sourceregex is null. It should also filter out source regex with empty string. When editing redirects, empty strings should be converted to
null