Skip to content

Commit

Permalink
Fix login redirect issue
Browse files Browse the repository at this point in the history
  • Loading branch information
rwecho committed Jan 5, 2024
1 parent eb357f7 commit 0b6c359
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/V2ex.Blazor/Pages/LoginWithGooglePage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public partial class LoginWithGooglePage : ContentPage
public LoginWithGooglePage(string once, Action<bool> loginCallback)
{
InitializeComponent();
this.BindingContext = this.ViewModel =
this.BindingContext = this.ViewModel =
InstanceCreator.Create<LoginWithGooglePageViewModel>();
this.ViewModel.Once = once;
this.Logger = InstanceCreator.Create<ILogger<LoginWithGooglePage>>();
Expand Down Expand Up @@ -38,7 +38,7 @@ private void WebView_Navigating(object sender, WebNavigatingEventArgs e)
{
isAuthenticated = true;
}
else if (e.Url == $"{UrlUtilities.BASE_URL}/" && isAuthenticated)
else if ((e.Url == $"{UrlUtilities.BASE_URL}/" || e.Url == $"{UrlUtilities.BASE_URL}/#") && isAuthenticated)
{
this.Dispatcher.DispatchAsync(async () =>
{
Expand Down

0 comments on commit 0b6c359

Please sign in to comment.