Skip to content

Build review-detail media URL from the request instead of a settings value#1937

Merged
vikrantwiz02 merged 1 commit into
FusionIIIT:prod-testfrom
kotangale237:phd
Jul 23, 2026
Merged

Build review-detail media URL from the request instead of a settings value#1937
vikrantwiz02 merged 1 commit into
FusionIIIT:prod-testfrom
kotangale237:phd

Conversation

@kotangale237

Copy link
Copy Markdown
Contributor

Summary

  • Follow-up to Redesign Comprehensive Exam and Open Seminar: RPC/DPGC/PGCS/Dean flow #1936. The external-reviewer review_detail endpoint was building its media base URL from a SITE_URL setting that must be manually kept in sync with the actual deployment domain, and had no such setting defined for this deployment.
  • Use request.build_absolute_uri(settings.MEDIA_URL) instead, which reflects whatever host the request actually arrived on.

Test plan

  • Open an external reviewer's review-detail link and confirm the returned media/document URLs resolve correctly against the actual server domain

…value

Avoids depending on a SITE_URL setting that must be kept in sync with
the actual deployment domain; request.build_absolute_uri() reflects
whatever host the request actually arrived on.
@vikrantwiz02
vikrantwiz02 merged commit 1019af3 into FusionIIIT:prod-test Jul 23, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants