diff --git a/src/RebrandListener.tsx b/src/RebrandListener.tsx index 077ff7a2f3..8a0c61f435 100644 --- a/src/RebrandListener.tsx +++ b/src/RebrandListener.tsx @@ -40,10 +40,13 @@ function getRedirectUrl(url): string { } else if (url.hostname === 'riot.im') { if (url.pathname.startsWith('/app')) { redirectUrl.hostname = 'app.element.io'; + redirectUrl.pathname = '/'; } else if (url.pathname.startsWith('/staging')) { redirectUrl.hostname = 'staging.element.io'; + redirectUrl.pathname = '/'; } else if (url.pathname.startsWith('/develop')) { redirectUrl.hostname = 'develop.element.io'; + redirectUrl.pathname = '/'; } return redirectUrl.href;