- Issue created by @zniki.ru
Working on 📌 Attempt to move large parts of LinkFieldTest to a kernel test Active I found, that on form widget submission with invalid urls, sometimes you receive not all error messages. That is poor user experience. It would be great to mark all invalid entries on signle form submission.
1) Attach link field with multiple values to entity.
2) Start creating entity and using values for link field:
3) On form submit you will receive error for first value ("no-leading-slash"):
Manually entered paths should start with one of the following characters: / ? #
4) Fix first value to "/no-leading-slash".
Submit form again, and you will receive 2 new error messages:
The path 'entity:non_existing_entity_type/yar' is invalid.
The path 'entity:user/invalid-parameter' is invalid.
Provide messages on step 3:
Manually entered paths should start with one of the following characters: / ? #
The path 'entity:non_existing_entity_type/yar' is invalid.
The path 'entity:user/invalid-parameter' is invalid.
Active
11.1 🔥
link.module