From c19592584de7b58b28254e151890743b1980d132 Mon Sep 17 00:00:00 2001 From: Nickolas Gupton Date: Sun, 10 Nov 2024 16:44:09 -0600 Subject: [PATCH] Fix redirect being fucky --- .../Bones.WebUI/Pages/Project/CreateInitiativePage.razor.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Frontend/Bones.WebUI/Pages/Project/CreateInitiativePage.razor.cs b/Frontend/Bones.WebUI/Pages/Project/CreateInitiativePage.razor.cs index f695306..2cc1c71 100644 --- a/Frontend/Bones.WebUI/Pages/Project/CreateInitiativePage.razor.cs +++ b/Frontend/Bones.WebUI/Pages/Project/CreateInitiativePage.razor.cs @@ -44,12 +44,12 @@ public async Task SendCreateRequestAsync() { ApiError = false; - Guid projectId = await ApiClient.CreateInitiativeAsync(ProjectId, new() + Guid initiativeId = await ApiClient.CreateInitiativeAsync(ProjectId, new() { Name = InitiativeName.Text }); - NavManager.NavigateTo(FrontEndUrls.Project.PROJECT_DASHBOARD.Replace("{ProjectId:guid}", projectId.ToString())); + NavManager.NavigateTo(FrontEndUrls.Project.Initiative.INITIATIVE_DASHBOARD.Replace("{ProjectId:guid}", ProjectId.ToString()).Replace("{InitiativeId:guid}", initiativeId.ToString())); } catch (ApiException ex) {