mirror of
https://github.com/penpot/penpot.git
synced 2026-10-29 22:10:34 +00:00
Replace the ad-hoc `public-uri-with-path` helper with `build-public-uri` that uses the standard `u/ensure-path-slash` + `u/join` pattern already used throughout the backend and frontend. This makes OIDC redirect URI construction consistent with the rest of the codebase while correctly preserving subpath configuration. For hash routes (frontend URLs), use `u/append-query-param` to place query params inside the fragment, matching the expected URL structure. Add 6 new tests covering subpath edge cases: - Trailing slash in public-uri - Query params inside hash fragments - No-subpath fallback - Multiple redirect functions with subpaths AI-assisted-by: qwen3.7-plus AI-assisted-by: gpt-5.6-luna