Skip to content

Commit

Permalink
Redirect to home when an error occurs from old search links
Browse files Browse the repository at this point in the history
  • Loading branch information
Simyon264 committed Jun 23, 2024
1 parent 93497d4 commit 6b0b05a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ReplayBrowser/Pages/Search.razor
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@
{
ErrorMessage = "Invalid search query";
stopWatch.Stop();
NavigationManager.NavigateTo("/");
return;
}

Expand All @@ -172,6 +173,7 @@
ErrorMessage = "Invalid search query";
ErrorDetails = e.Message;
stopWatch.Stop();
NavigationManager.NavigateTo("/");
return;
}

Expand Down Expand Up @@ -206,6 +208,7 @@
ErrorMessage = "Invalid search query";
ErrorDetails = "No search items found";
stopWatch.Stop();
NavigationManager.NavigateTo("/");
return;
}
if (searchItems.Exists(x => x.SearchModeEnum == SearchMode.PlayerOocName))
Expand Down

0 comments on commit 6b0b05a

Please sign in to comment.