Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

How to navigate from Blazor to external page in the same domain

$
0
0

Let's say we have a simple Blazor WebAssembly app with the following pages

/index/counter/fetchdata

This app is hosted within an MVC app that has the following routes

/login/logout

The problem is when trying to navigate to /logout from the Blazor app, it catches the route and show the known page

Sorry, there's nothing at this address

Using the following code to navigate to /login page

_navigationManager.NavigateTo("/login", forceLoad = true);

My question: is there any way to escape from Blazor service worker for not-found routes, Or just bypass the navigation to the browser for specific route.

Thanks in advance


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>