From eb2c116a25922c148c3adb06cb5308a9206b5b14 Mon Sep 17 00:00:00 2001 From: Saleh Yusefnejad Date: Sat, 1 Jun 2024 18:48:12 +0330 Subject: [PATCH] feat(templates): replace navigation in local http servers of Boilerplate #7667 (#7672) --- .../Boilerplate.Client.Maui/Services/MauiLocalHttpServer.cs | 2 +- .../Services/WindowsLocalHttpServer.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Maui/Services/MauiLocalHttpServer.cs b/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Maui/Services/MauiLocalHttpServer.cs index 63698bcea9..ee5a6f1edb 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Maui/Services/MauiLocalHttpServer.cs +++ b/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Maui/Services/MauiLocalHttpServer.cs @@ -51,7 +51,7 @@ private async Task StartImplementation() app.MapGet("sign-in", async (HttpContext context, HtmlRenderer htmlRenderer) => { - await Routes.OpenUniversalLink(context.Request.GetEncodedPathAndQuery()); + await Routes.OpenUniversalLink(context.Request.GetEncodedPathAndQuery(), replace: true); var body = await htmlRenderer.Dispatcher.InvokeAsync(async () => { diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Windows/Services/WindowsLocalHttpServer.cs b/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Windows/Services/WindowsLocalHttpServer.cs index bf8b08b086..ebcad2c859 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Windows/Services/WindowsLocalHttpServer.cs +++ b/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Windows/Services/WindowsLocalHttpServer.cs @@ -50,7 +50,7 @@ private async Task StartImplementation() app.MapGet("sign-in", async (HttpContext context, HtmlRenderer htmlRenderer) => { - await Routes.OpenUniversalLink(context.Request.GetEncodedPathAndQuery()); + await Routes.OpenUniversalLink(context.Request.GetEncodedPathAndQuery(), replace: true); await App.Current.Dispatcher.InvokeAsync(() => App.Current.MainWindow.Activate()); var body = await htmlRenderer.Dispatcher.InvokeAsync(async () =>