diff --git a/src/V2ex.Blazor/Pages/LoginWithGooglePage.xaml.cs b/src/V2ex.Blazor/Pages/LoginWithGooglePage.xaml.cs index 02a3779..0b7d19e 100644 --- a/src/V2ex.Blazor/Pages/LoginWithGooglePage.xaml.cs +++ b/src/V2ex.Blazor/Pages/LoginWithGooglePage.xaml.cs @@ -10,7 +10,7 @@ public partial class LoginWithGooglePage : ContentPage public LoginWithGooglePage(string once, Action loginCallback) { InitializeComponent(); - this.BindingContext = this.ViewModel = + this.BindingContext = this.ViewModel = InstanceCreator.Create(); this.ViewModel.Once = once; this.Logger = InstanceCreator.Create>(); @@ -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 () => {