jojo/templates/user
doasu a9bd068d00 fix: URL-encode login provider name in the href attribute (#10301)
The authentication provider's name (`$provider.DisplayName`) is not URL-encoded, so any illegal characters (e.g., '/') will be put in the link's href attribute verbatim.
For example, if the provider's name is `foo/bar` (valid name), the href attribute will point to `/user/oauth2/foo/bar` instead of `/user/oauth2/foo%2Fbar`, resulting in a "404 Not found" error.

This patch fixes this behaviour by URL-encoding the provider's DisplayName before appending it to the href attribute.

Signed-off-by: doasu <me@doasu.dev>
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/10301
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Co-authored-by: doasu <me@doasu.dev>
Co-committed-by: doasu <me@doasu.dev>
2026-03-31 21:51:57 +02:00
..
auth fix: URL-encode login provider name in the href attribute (#10301) 2026-03-31 21:51:57 +02:00
dashboard fix(ui): update sort dropdown structure for consistency across templates (#11423) 2026-02-24 04:21:59 +01:00
notification feat(ui): improve visibility of counters inside of switch items (#11472) 2026-03-08 18:09:13 +01:00
overview feat(UI): add package counter to repo/user/org overview pages 2024-07-31 12:40:24 +02:00
settings feat(ui): create repo-specific access tokens (#11696) 2026-03-23 15:29:08 +01:00
code.tmpl Unify search boxes (#29530) 2024-03-20 12:31:05 +00:00
heatmap.tmpl Fix heatmap localization 2024-03-20 08:20:08 +01:00
profile.tmpl feat: allow any README for .profile (#8798) 2025-09-01 13:58:00 +02:00