Files
classroomio/apps/dashboard/src/lib/features
5320f1eb44 fix(dashboard): use verified custom domain for view-as-student handoff (#677)
* fix(dashboard): use verified custom domain for view-as-student handoff

Prefer the org's verified custom domain over window.location.origin when
resolving the public tenant host. This prevents admin URLs like
app.example.com from being used for the student login-link handoff when
the org's public site is example.com.

Co-authored-by: Rotimi Best <rotimi-best@users.noreply.github.com>

* fix(dashboard): keep self-hosted org origin on window.location

Self-hosted deployments serve admin and LMS from the same URL, so
getOrgPublicOrigin should always return window.location.origin there
rather than preferring a configured custom domain.

Co-authored-by: Rotimi Best <rotimi-best@users.noreply.github.com>

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Rotimi Best <rotimi-best@users.noreply.github.com>
2026-06-19 14:50:37 +01:00
..
2026-06-12 02:25:02 +01:00
2026-04-27 11:40:38 +01:00
2026-03-18 23:39:12 +01:00
2026-05-21 16:38:35 +01:00
2026-04-27 11:40:38 +01:00
2026-06-12 01:03:17 +01:00
2026-04-27 11:40:38 +01:00