Skip to content

Commit

Permalink
Hot fix: Wrong redirect to public public platform on web
Browse files Browse the repository at this point in the history
  • Loading branch information
nqhhdev authored and hoangdat committed Mar 27, 2024
1 parent 3778c01 commit d4f517a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/pages/connect/connect_page_mixin.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ mixin ConnectPageMixin {

static const windowNameValue = '_self';

static const redirectPublicPlatformOnWeb = 'post_login_redirect_url';

bool supportsFlow({
required BuildContext context,
required String flowType,
Expand Down Expand Up @@ -64,7 +66,7 @@ mixin ConnectPageMixin {
required String redirectUrl,
}) {
final redirectUrlEncode = Uri.encodeQueryComponent(redirectUrl);
return '${AppConfig.registrationUrl}?post_registered_redirect_url=$redirectUrlEncode';
return '${AppConfig.registrationUrl}?$redirectPublicPlatformOnWeb=$redirectUrlEncode';
}

String? _getLogoutUrl(
Expand Down

0 comments on commit d4f517a

Please sign in to comment.