Fix remaining base_url usages that should use frontend_url #105
Labels
No labels
domain:backend
domain:devops
domain:frontend
status:approved
status:in-progress
status:needs-fix
status:qa
type:bug
type:devops
type:feature
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
forgejo_admin/basketball-api#105
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Type
Bug
Lineage
plan-wkq→ Phase 11 → Discovered scope from PR #104 QA reviewRepo
forgejo_admin/basketball-apiWhat Broke
Email links in registration confirmation (
email.pyline 83) and tryouts page (tryouts.pyline 795) usesettings.base_url(the API host) for user-facing URLs. Parents clicking these links land on the API server instead of the frontend app.Repro Steps
basketball-api.tail5b443a.ts.netinstead ofwestsidekingsandqueens.tail5b443a.ts.netExpected Behavior
All user-facing links in emails should use
settings.frontend_url(westsidekingsandqueens.tail5b443a.ts.net), notsettings.base_url(the API host).Environment
Production — basketball-api on k8s cluster
File Targets
src/basketball_api/services/email.py— line 83:reg_urlusessettings.base_urlsrc/basketball_api/routes/tryouts.py— line 795:reg_urlusessettings.base_urlNote:
tryouts.py:509(photo_url) is intentionallybase_url— that's a MinIO photo URL served by the API, not a user-facing link. Out of scope.Acceptance Criteria
settings.frontend_urlsettings.base_urlTest Expectations
pytest tests/Constraints
Checklist
Related
frontend_urlconfigScope Review: NEEDS_REFINEMENT
Review note:
review-206-2026-03-27File target inaccuracies found — 2 of 3 targets are correct, 1 is wrong:
base_urlusage is at line 83 (reg_urlinsend_confirmation_email). Line 56 is blank.photo_urlpoints to an API-hosted resource (player photos). Changing tofrontend_urlwould break photo loading. Remove from scope.reg_urlin roster "Copy Link" button is user-facing and needsfrontend_url.Additional findings:
base_urlaudit shows 5 usages total. The other 2 (admin.py:203 coach invite, coach_onboarding.py:112 Stripe callbacks) correctly usebase_url.story:WS-S17label on board item.Scope Review: NEEDS_REFINEMENT
Review note:
review-206-2026-03-27Well-structured bug report. File targets verified but have issues:
base_urlusage is at line 83. Update file target.photo_url-- photos are served by the API (MinIO proxy), not the frontend. This line should be removed from scope. Only tryouts.py:795 (reg_url) needs the fix.Actual scope: 2 lines changed across 2 files. Single-agent, no decomposition needed.
Issue body updated per scope review corrections.