Use Uri.EscapeDataString
This commit is contained in:
parent
5292f10c4d
commit
569a099ec7
@ -1,6 +1,5 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Net;
|
|
||||||
using Avalonia.Interactivity;
|
using Avalonia.Interactivity;
|
||||||
using Avalonia.WebView.Windows.Core;
|
using Avalonia.WebView.Windows.Core;
|
||||||
using Microsoft.Web.WebView2.Core;
|
using Microsoft.Web.WebView2.Core;
|
||||||
@ -14,7 +13,7 @@ public partial class AuthSetupView : UserControl<AuthSetupViewModel>
|
|||||||
{
|
{
|
||||||
private const string HomePageUrl = "https://www.youtube.com";
|
private const string HomePageUrl = "https://www.youtube.com";
|
||||||
private static readonly string LoginPageUrl =
|
private static readonly string LoginPageUrl =
|
||||||
$"https://accounts.google.com/ServiceLogin?continue={WebUtility.UrlEncode(HomePageUrl)}";
|
$"https://accounts.google.com/ServiceLogin?continue={Uri.EscapeDataString(HomePageUrl)}";
|
||||||
|
|
||||||
private CoreWebView2? _coreWebView2;
|
private CoreWebView2? _coreWebView2;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user