Skip to content

Commit

Permalink
Fix pages fake loading using anchor href
Browse files Browse the repository at this point in the history
Using window.location.href bypasses this or something? I have no clue.
  • Loading branch information
Simyon264 committed May 11, 2024
1 parent 7c8e114 commit 9971ac1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Client/Components/Layout/MainLayout.razor
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,16 @@
<p>Hello <strong>@User.Claims.Single(c => c.Type == "name").Value!</strong></p>

<a href="/account/logout" class="btn btn-primary">Logout</a>
<a href="/account/manage" class="btn btn-primary" style="margin-left: 10px">Manage</a>
<a class="btn btn-primary" onclick="window.location.href = '/account/manage';" style="margin-left: 10px">Manage</a>
}
else
{
<a href="/account/login" class="btn btn-primary">Login</a>
}

<br/>
<a href="/leaderboard" class="btn btn-primary" style="margin-top: 10px">Leaderboard</a>
<a href="/" class="btn btn-primary" style="margin-left: 10px; margin-top: 10px">Main page</a>
<a class="btn btn-primary" onclick="window.location.href = '/leaderboard'" style="margin-top: 10px">Leaderboard</a>
<a class="btn btn-primary" onclick="window.location.href = '/'" style="margin-left: 10px; margin-top: 10px">Main page</a>

<hr/>
@Body
Expand Down

0 comments on commit 9971ac1

Please sign in to comment.