hm-redirects
hm-redirects copied to clipboard
Prevent creation of redirect with duplicate "From" value
If a user creates a redirect with a "From" value that matches an existing redirect:
- The new redirect doesn't work because the existing one takes preference
- The
post_nameof the new redirect gets-2appended, which means it will still not work even if the original is deleted because its hash won't match
The UI should show an error if you attempt to add or edit a redirect with a "From" value that matches and existing one, and suggest editing the original instead.