Skip to content

Commit

Permalink
fix: the baseuri switch fix (#1139)
Browse files Browse the repository at this point in the history
* fix: the baseuri switch fix

the baseuri is endwith stash ,fix the match condition

* Update BaseLayout.razor
  • Loading branch information
xyfy authored Mar 27, 2023
1 parent a6aff57 commit 49a02fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/Masa.Docs.Shared/Shared/BaseLayout.razor
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@

private void SetEnv()
{
var uri = NavigationManager.BaseUri.Replace("http://", "").Replace("https://", "");
var uri = NavigationManager.BaseUri.Replace("http://", "").Replace("https://", "").TrimEnd('/');
_env = uri switch
{
"docs.massastack.com" or "blazor.massastack.com" => "prd_",
Expand Down

0 comments on commit 49a02fa

Please sign in to comment.