fix(ofsted): link to the school's Ofsted page, not a hardcoded provider type
Build and Push Docker Images / Build Backend (FastAPI) (push) Successful in 13s
Build and Push Docker Images / Build Frontend (Next.js) (push) Successful in 48s
Build and Push Docker Images / Build Pipeline (Meltano + dbt + Airflow) (push) Successful in 12s
Build and Push Docker Images / Trigger Portainer Update (push) Successful in 1s

The report link hardcoded provider type 21, which 404s for every school
whose Ofsted provider type isn't 21 (nurseries -> 20, academies -> 23, etc.).
Use Ofsted's URN-based find-inspection-report URL, which redirects to the
correct provider page for any school, and rename the link to "Ofsted reports"
since it points to the school's Ofsted page (all reports), not one report.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Tudor
2026-07-01 22:26:48 +01:00
co-authored by Claude Opus 4.8
parent 9e4cf9dfbf
commit cdb2e4cf41
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -504,14 +504,14 @@ export function SchoolDetailView({
</span> </span>
)} )}
<a <a
href={`https://reports.ofsted.gov.uk/provider/21/${schoolInfo.urn}`} href={`https://reports.ofsted.gov.uk/inspection-reports/find-inspection-report/provider/ELS/${schoolInfo.urn}`}
target="_blank" target="_blank"
rel="noopener noreferrer" rel="noopener noreferrer"
className={styles.ofstedReportLink} className={styles.ofstedReportLink}
data-umami-event="external_link_clicked" data-umami-event="external_link_clicked"
data-umami-event-target="ofsted" data-umami-event-target="ofsted"
> >
Full report Ofsted reports
</a> </a>
</h2> </h2>
@@ -328,14 +328,14 @@ export function SecondarySchoolDetailView({
</span> </span>
)} )}
<a <a
href={`https://reports.ofsted.gov.uk/provider/21/${schoolInfo.urn}`} href={`https://reports.ofsted.gov.uk/inspection-reports/find-inspection-report/provider/ELS/${schoolInfo.urn}`}
target="_blank" target="_blank"
rel="noopener noreferrer" rel="noopener noreferrer"
className={styles.ofstedReportLink} className={styles.ofstedReportLink}
data-umami-event="external_link_clicked" data-umami-event="external_link_clicked"
data-umami-event-target="ofsted" data-umami-event-target="ofsted"
> >
Full report Ofsted reports
</a> </a>
</h2> </h2>
{ofsted.framework === 'ReportCard' ? ( {ofsted.framework === 'ReportCard' ? (