Skip to content

Commit f79febd

Browse files
FrostyApeOneFrostyApeOne
authored andcommitted
Updated applications path and updated packages
1 parent 8ca2740 commit f79febd

7 files changed

Lines changed: 11 additions & 11 deletions

File tree

src/DfE.ExternalApplications.Domain/DfE.ExternalApplications.Domain.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="DfE.CoreLibs.Contracts" Version="1.0.34" />
10+
<PackageReference Include="DfE.CoreLibs.Contracts" Version="1.0.36" />
1111
</ItemGroup>
1212

1313
</Project>

src/DfE.ExternalApplications.Infrastructure/DfE.ExternalApplications.Infrastructure.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
<ItemGroup>
1010
<PackageReference Include="DfE.CoreLibs.Caching" Version="1.0.10" />
11-
<PackageReference Include="DfE.CoreLibs.Contracts" Version="1.0.34" />
11+
<PackageReference Include="DfE.CoreLibs.Contracts" Version="1.0.36" />
1212
<PackageReference Include="GovUK.Dfe.ExternalApplications.Api.Client" Version="0.1.13" />
1313
<PackageReference Include="Microsoft.AspNetCore.Http.Extensions" Version="2.3.0" />
1414
</ItemGroup>

src/DfE.ExternalApplications.Web/Pages/Applications/ApplicationPreview.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
ViewData["Title"] = "Preview application";
55
}
66

7-
<govuk-back-link href="/form-engine/render-form/@Model.ReferenceNumber">Back to application task list</govuk-back-link>
7+
<govuk-back-link href="/applications/@Model.ReferenceNumber">Back to application task list</govuk-back-link>
88
<div class="govuk-grid-row">
99
<div class="govuk-grid-column-full">
1010
<h1 class="govuk-heading-xl govuk-!-margin-bottom-6">Your application</h1>

src/DfE.ExternalApplications.Web/Pages/Applications/Dashboard.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
</strong>
7474
</td>
7575
<td class="govuk-table__cell">
76-
<a href="/form-engine/render-form/@app.ApplicationReference" class="govuk-link">@action</a>
76+
<a href="/applications/@app.ApplicationReference" class="govuk-link">@action</a>
7777
</td>
7878
</tr>
7979
}

src/DfE.ExternalApplications.Web/Pages/Applications/TaskSummary.cshtml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
ViewData["Title"] = Model.CurrentTask?.TaskName ?? "Task Summary";
66
}
77

8-
<govuk-back-link href="/form-engine/render-form/@Model.ReferenceNumber">Back to application task list</govuk-back-link>
8+
<govuk-back-link href="/applications/@Model.ReferenceNumber">Back to application task list</govuk-back-link>
99

1010
<h1 class="govuk-heading-xl govuk-!-margin-bottom-6">@Model.CurrentTask.TaskName</h1>
1111

@@ -16,7 +16,7 @@
1616
{
1717
var fieldValue = Model.GetFieldValue(field.FieldId);
1818
var hasValue = Model.HasFieldValue(field.FieldId);
19-
var changeUrl = $"/form-engine/render-form/{Model.ReferenceNumber}/{page.PageId}";
19+
var changeUrl = $"/applications/{Model.ReferenceNumber}/{page.PageId}";
2020

2121
if ((field.Type == "autocomplete" || field.Type == "complexField") && hasValue)
2222
{
@@ -112,7 +112,7 @@
112112

113113
<div class="govuk-button-group govuk-!-margin-top-6">
114114
<govuk-button type="submit" id="save-task-summary-button">Save and continue</govuk-button>
115-
<a class="govuk-link" href="/form-engine/render-form/@Model.ReferenceNumber">Return to application overview</a>
115+
<a class="govuk-link" href="/applications/@Model.ReferenceNumber">Return to application overview</a>
116116
</div>
117117
</form>
118118
}
@@ -124,6 +124,6 @@ else
124124
</div>
125125

126126
<div class="govuk-!-margin-top-6">
127-
<a class="govuk-link" href="/form-engine/render-form/@Model.ReferenceNumber">Return to application overview</a>
127+
<a class="govuk-link" href="/applications/@Model.ReferenceNumber">Return to application overview</a>
128128
</div>
129129
}

src/DfE.ExternalApplications.Web/Pages/FormEngine/RenderForm.cshtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@page "/form-engine/render-form/{referenceNumber}/{pageId?}"
1+
@page "/applications/{referenceNumber}/{pageId?}"
22
@using DfE.ExternalApplications.Infrastructure.Services
33
@using GovUk.Frontend.AspNetCore.TagHelpers
44
@model RenderFormModel
@@ -27,7 +27,7 @@
2727

2828
<form method="post" asp-page-handler="Page">
2929
<input type="hidden" asp-for="CurrentPageId" />
30-
<govuk-back-link href="/form-engine/render-form/@Model.ReferenceNumber">Back</govuk-back-link>
30+
<govuk-back-link href="/applications/@Model.ReferenceNumber">Back</govuk-back-link>
3131
<h1 class="govuk-heading-xl govuk-!-margin-bottom-6">@Model.CurrentTask.TaskName</h1>
3232

3333
<govuk-error-summary>

src/DfE.ExternalApplications.Web/Pages/FormEngine/RenderForm.cshtml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public async Task OnGetAsync(string pageId)
4444
// If application is not editable and trying to access a specific page, redirect to preview
4545
if (!IsApplicationEditable() && !string.IsNullOrEmpty(pageId))
4646
{
47-
Response.Redirect($"~/render-form/{ReferenceNumber}/preview");
47+
Response.Redirect($"~/applications/{ReferenceNumber}/preview");
4848
return;
4949
}
5050

0 commit comments

Comments
 (0)