Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public AndroidHybridWebViewClient(HybridWebViewHandler handler) : base(handler)
Stream? contentStream = null;

// Check to see if the request is a proxy request.
if (relativePath == HybridWebView.ProxyRequestPath)
if (relativePath == HybridWebView.ProxyRequestPath || relativePath?.StartsWith($"{HybridWebView.ProxyRequestPath}\\") == true)
{
var args = new HybridWebViewProxyEventArgs(fullUrl);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public async void StartUrlSchemeTask(WKWebView webView, IWKUrlSchemeTask urlSche
Stream? contentStream = null;

// Check to see if the request is a proxy request.
if (relativePath == HybridWebView.ProxyRequestPath)
if (relativePath == HybridWebView.ProxyRequestPath || relativePath?.StartsWith($"{HybridWebView.ProxyRequestPath}\\") == true)
{
var args = new HybridWebViewProxyEventArgs(fullUrl);

Expand Down
2 changes: 1 addition & 1 deletion HybridWebView/Platforms/Windows/HybridWebView.Windows.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ private async void CoreWebView2_WebResourceRequested(CoreWebView2 sender, CoreWe
Stream? contentStream = null;

// Check to see if the request is a proxy request
if (relativePath == ProxyRequestPath)
if (relativePath == ProxyRequestPath || relativePath?.StartsWith($"{HybridWebView.ProxyRequestPath}\\") == true)
{
var fullUrl = eventArgs.Request.Uri;

Expand Down
2 changes: 1 addition & 1 deletion HybridWebView/Platforms/iOS/HybridWebViewHandler.iOS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public async void StartUrlSchemeTask(WKWebView webView, IWKUrlSchemeTask urlSche
Stream? contentStream = null;

// Check to see if the request is a proxy request.
if (relativePath == HybridWebView.ProxyRequestPath)
if (relativePath == HybridWebView.ProxyRequestPath || relativePath?.StartsWith($"{HybridWebView.ProxyRequestPath}\\") == true)
{
var args = new HybridWebViewProxyEventArgs(fullUrl);

Expand Down