fixes the 404 on the Details button
This commit is contained in:
parent
e62adedc17
commit
05db88f345
1 changed files with 1 additions and 1 deletions
|
|
@ -70,7 +70,7 @@
|
||||||
<div class="actiongroup">
|
<div class="actiongroup">
|
||||||
@if ((await AuthorizationService.AuthorizeAsync(User, post, new ReadPermission())).Succeeded)
|
@if ((await AuthorizationService.AuthorizeAsync(User, post, new ReadPermission())).Succeeded)
|
||||||
{
|
{
|
||||||
<a asp-action="Details" asp-route-id="@((IBlogPost)post).Id" class="btn btn-light">Details</a>
|
<a asp-action="Details" asp-route-id="@post.Id" class="btn btn-light">Details</a>
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue