Ideally, preventing duplicate redirects based on their hashes should be done using validation constraints, instead of form validation. This has two benefits.
Prevention will apply in other means of entity creation e.g. via APIs, imports via integrations of CSV files etc.
Customization is easier by applications by extending or overriding the validator.