chore: Fix oidc login on web

This commit is contained in:
Christian Kußowski 2026-02-22 12:12:45 +01:00
parent a422d07d63
commit bed0a89d65
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652

View file

@ -20,7 +20,7 @@ Future<void> oidcLoginFlow(
) async {
Logs().i('Starting Matrix Native OIDC Flow...');
final redirectUrl = kIsWeb
? Uri.parse(html.window.location.href).resolveUri(Uri(query: ''))
? Uri.parse(html.window.location.href.split('#').first.split('?').first)
: (PlatformInfos.isMobile || PlatformInfos.isWeb || PlatformInfos.isMacOS)
? Uri.parse('${AppConfig.appOpenUrlScheme.toLowerCase()}:/login')
: Uri.parse('http://localhost:3001/login');