Skip to content

Commit

Permalink
Fix navigation on /Organization/Overview (#540)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonashendrickx authored Apr 3, 2024
1 parent f56b4f4 commit d5c6516
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/AdminConsole/Pages/Organization/Overview.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
@foreach (var app in Model.Org.Applications)
{
<li>
<a asp-page="@Model.GetApplicationUrl(app)" asp-route-appId="@app.Id" class="block hover:bg-gray-50">
<a href="@Model.GetApplicationUrl(app)" class="block hover:bg-gray-50">
<div class="flex items-center px-4 py-4 sm:px-6">
<div class="flex min-w-0 flex-1 items-center">
<div class="min-w-0 flex-1 px-4 md:grid md:grid-cols-2 md:gap-4">
Expand Down
4 changes: 2 additions & 2 deletions src/AdminConsole/Pages/Organization/Overview.cshtml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ public async Task<IActionResult> OnGet()
public string GetApplicationUrl(Models.Application application)
{
string url = application.DeleteAt.HasValue
? "/app/Settings/Settings"
: "/app/credentials/list";
? $"/app/{application.Id}/Settings"
: $"/app/{application.Id}/credentials/list";
return url;
}
}

0 comments on commit d5c6516

Please sign in to comment.