gitforge/templates/org
AverageHelper 408572dd35 feat: in-browser validation of website URLs for user, repository, and organization profiles (#12991)
This PR pertains to the client-side validation of the Website input on user, repo, and org profiles. #12962 extends `[service].VALID_SITE_URL_SCHEMES` to cover Website fields on repo and org profiles, where before that config key only applied to the one on user profiles. If that change merges, it will then be possible to construct an HTML [`pattern`](https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/input#pattern) attribute for general use on any Website form input that the server validates this way, thus enabling browsers to catch errors early relating to URL scheme confusion.

This PR (1) introduces such a `pattern` attribute, and (2) adds a new UI note to make clear to users which URL schemes are permitted. This change helps explain the browser's otherwise cryptic error messages regarding pattern mismatch, while also letting users know what URI schemes the Forgejo instance supports as Website links (e.g. gemini:// URLs).

![A text field labeled "Website", with a note below which reads, "Allowed URL schemes include: http, https"](/attachments/304e17ee-b5aa-414e-a4fa-d48639336c6c)

This MUST NOT merge before #12962. To do so would introduce a regression wherein the UI may suggest and validate a different set of allowed URL schemes than the server actually permits.

See also #5519

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/12991
Reviewed-by: 0ko <0ko@noreply.codeberg.org>
2026-06-08 17:35:15 +02:00
..
member feat: "Add member" button in org members list (#11848) 2026-03-31 02:56:12 +02:00
projects Fix the missing menu in organization project view page (#32313) 2024-11-05 09:33:15 +01:00
settings feat: in-browser validation of website URLs for user, repository, and organization profiles (#12991) 2026-06-08 17:35:15 +02:00
team fix(ui): fix and simplify org invite template view (#12580) 2026-05-19 21:17:08 +02:00
create.tmpl feat: replace cross origin protection (#9830) 2025-10-29 22:43:22 +01:00
follow_unfollow.tmpl feat(ui): implement new buttons for better cohesiveness (#9359) 2025-10-05 05:22:32 +02:00
header.tmpl feat(ui): allow dropdown to contain not just items (#9951) 2025-11-05 05:00:15 +01:00
home.tmpl feat(ui): implement new buttons for better cohesiveness (#9359) 2025-10-05 05:22:32 +02:00
menu.tmpl Update module github.com/editorconfig-checker/editorconfig-checker/v2/cmd/editorconfig-checker to v3 2024-08-09 21:03:37 +02:00