Skip to content

Commit b8d4e79

Browse files
Merge pull request #1712 from companieshouse/ROECCT-230-CHANGE-DATE-OF-UPDATE-BACK-LINK
ROECCT-230: Change 'Date of the update statement' back button link
2 parents bc5fcb8 + 35993b8 commit b8d4e79

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/controllers/update/update.filing.date.controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const get = async (req: Request, res: Response, next: NextFunction) => {
1818
logger.debugRequest(req, `${req.method} ${req.route.path}`);
1919

2020
const appData = await getApplicationData(req.session);
21-
const backLinkUrl = !checkRelevantPeriod(appData) ? config.UPDATE_OVERSEAS_ENTITY_CONFIRM_URL : config.RELEVANT_PERIOD_OWNED_LAND_FILTER_URL + config.RELEVANT_PERIOD_QUERY_PARAM;
21+
const backLinkUrl = !checkRelevantPeriod(appData) ? config.RELEVANT_PERIOD_OWNED_LAND_FILTER_URL : config.RELEVANT_PERIOD_REVIEW_STATEMENTS_URL + config.RELEVANT_PERIOD_QUERY_PARAM;
2222

2323
return res.render(config.UPDATE_FILING_DATE_PAGE, {
2424
backLinkUrl,

test/__mocks__/text.mock.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ export const CONFIRM_AND_CONTINUE_BUTTON_TEXT = "Confirm and continue";
208208
export const UPDATE_OVERSEAS_ENTITY_TITLE = "Update overseas entity";
209209
export const OE_NUMBER_FIELD_POPULATED = "value=\"OE123456\"";
210210
export const OVERSEAS_ENTITY_UPDATE_TITLE = "Check the overseas entity details";
211-
export const BACK_LINK_FOR_UPDATE_FILING_DATE = "/update-an-overseas-entity/confirm-overseas-entity-details";
211+
export const BACK_LINK_FOR_UPDATE_FILING_DATE = "/update-an-overseas-entity/registered-owner-during-pre-registration-period";
212212
export const BACK_LINK_FOR_UPDATE_OE_CONFIRM = "/update-an-overseas-entity/overseas-entity-query";
213213
export const CHANGE_LINK_ENTITY_NAME = "/update-an-overseas-entity/entity#entity_name";
214214
export const CHANGE_LINK_ENTITY_PRINCIPAL_ADDRESS = "/update-an-overseas-entity/entity#principal_address_property_name_number";

test/controllers/update/update.filing.date.controller.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ describe("Update Filing Date controller", () => {
142142
const resp = await request(app).get(config.UPDATE_FILING_DATE_URL);
143143

144144
expect(resp.status).toEqual(200);
145-
expect(resp.text).toContain("/update-an-overseas-entity/registered-owner-during-pre-registration-period?relevant-period=true");
145+
expect(resp.text).toContain("/update-an-overseas-entity/review-statements-for-the-pre-registration-period?relevant-period=true");
146146
});
147147

148148
test('renders the update-filing-date page with no update session data', async () => {

0 commit comments

Comments
 (0)