Skip to content

Commit

Permalink
Merge pull request #1446 from companieshouse/bug/roe-2558-fix-broken-…
Browse files Browse the repository at this point in the history
…back-links

Fix: Add `trust-interrupt` url and `add-trust` url to the trust-details backlinks
  • Loading branch information
mwejuli-ch committed Jul 2, 2024
2 parents fe4a906 + a0f8cde commit 71ce6c6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/utils/trust.details.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,12 +217,14 @@ const getBackLinkUrl = (isUpdate: boolean, appData: ApplicationData, req: Reques
} else {
backLinkUrl = isActiveFeature(config.FEATURE_FLAG_ENABLE_REDIS_REMOVAL)
? getUrlWithParamsToPath(config.TRUST_ENTRY_WITH_PARAMS_URL, req)
: config.TRUST_ENTRY_URL + config.TRUST_INTERRUPT_URL;
: config.TRUST_ENTRY_URL;
backLinkUrl += config.TRUST_INTERRUPT_URL;

if (containsTrustData(getTrustArray(appData))) {
backLinkUrl = isActiveFeature(config.FEATURE_FLAG_ENABLE_REDIS_REMOVAL)
? getUrlWithParamsToPath(config.TRUST_ENTRY_WITH_PARAMS_URL, req)
: config.TRUST_ENTRY_URL + config.ADD_TRUST_URL;
: config.TRUST_ENTRY_URL;
backLinkUrl += config.ADD_TRUST_URL;
}
}

Expand Down

0 comments on commit 71ce6c6

Please sign in to comment.