Skip to content

Commit

Permalink
Fix Relative Paths
Browse files Browse the repository at this point in the history
  • Loading branch information
David-Moreira committed Mar 22, 2023
1 parent 631809d commit 9e58831
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/XTabs/XTabs.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ public async Task SetActiveAsync(XTab tab)

if (NavigationMode == NavigationMode.Navigable && !string.IsNullOrWhiteSpace(tab.RouteUrl))
{
if (tab.RouteUrl.StartsWith('\\'))
if (tab.RouteUrl.StartsWith('/'))
_navigationManager.NavigateTo(tab.RouteUrl[1..]);
else
_navigationManager.NavigateTo(tab.RouteUrl);
Expand Down

0 comments on commit 9e58831

Please sign in to comment.