chore: follow up of web sso fix
This commit is contained in:
parent
4428b1dd49
commit
e9c40c4188
3 changed files with 11 additions and 5 deletions
|
|
@ -198,7 +198,7 @@ class HomeserverPickerController extends State<HomeserverPicker> {
|
|||
ssoHomeserverKey, Matrix.of(context).client.homeserver.toString());
|
||||
}
|
||||
final redirectUrl = kIsWeb
|
||||
? AppConfig.webBaseUrl
|
||||
? AppConfig.webBaseUrl + '/#/'
|
||||
: AppConfig.appOpenUrlScheme.toLowerCase() + '://login';
|
||||
launch(
|
||||
'${Matrix.of(context).client.homeserver?.toString()}/_matrix/client/r0/login/sso/redirect/${Uri.encodeComponent(id)}?redirectUrl=${Uri.encodeQueryComponent(redirectUrl)}',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue