fix: update course link behavior to open in a new tab and adjust course link fallback for self-hosted instances

This commit is contained in:
Rotimi Best
2026-03-12 05:46:31 +01:00
parent 5bda496a08
commit 51db162829
2 changed files with 4 additions and 2 deletions
@@ -60,6 +60,8 @@ export const currentOrgPath = derived(currentOrg, ($currentOrg) =>
);
export const currentOrgDomain = derived(currentOrg, ($currentOrg) => {
if (PUBLIC_IS_SELFHOSTED === 'true') return window.location.origin;
const browserOrigin = dev && browser && window.location.origin;
// Get the root domain from window.location