[openstreetmap/openstreetmap-website] Error handling bug with social links (Issue #6903)

Andy Allan notifications at github.com
Wed Mar 18 15:10:07 UTC 2026


gravitystorm created an issue (openstreetmap/openstreetmap-website#6903)

### URL

https://www.openstreetmap.org/profile/links

### How to reproduce the issue?

If I make a mistake adding social links, and remove the offending item, then it's not possible to submit the form.

Step by step:

* Visit the profile links edit page, confirm that there are no links on this account.
* Add a valid url in the first textbox
* Press "Add Social Link"
* With the second box empty, press "Update Profile"
* The page will show an error with the second box higlighted
* Press "Remove" beside the second box
* Now press "Update Profile".
* Nothing happens. The javascript console says "The invalid form control with name=‘user[social_links_attributes][1][url]’ is not focusable."

### Screenshot(s) or anything else?

<img width="586" height="270" alt="Image" src="https://github.com/user-attachments/assets/ea02011c-a3a5-4372-a628-f985821984df" />
<img width="586" height="270" alt="Image" src="https://github.com/user-attachments/assets/91de5cf1-f6d9-4b00-9498-286d38551977" />
<img width="586" height="293" alt="Image" src="https://github.com/user-attachments/assets/12c4c1af-ddd3-48fe-ac90-6671533878ba" />
<img width="586" height="372" alt="Image" src="https://github.com/user-attachments/assets/b261b11b-0295-4448-8784-2fe79b972c4a" />
<img width="586" height="302" alt="Image" src="https://github.com/user-attachments/assets/83ec74b6-ed65-44b8-9ebb-b9e6a1a55f00" />

<img width="1172" height="34" alt="Image" src="https://github.com/user-attachments/assets/048fae8b-e7d5-44d9-a834-84fdc359a9f6" />

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/6903
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/issues/6903 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260318/f617e60a/attachment.htm>


More information about the rails-dev mailing list