diff --git a/api/lib/domain/services/session-results-link-service.js b/api/lib/domain/services/session-results-link-service.js index 9bbbd18191e..5b84d9682da 100644 --- a/api/lib/domain/services/session-results-link-service.js +++ b/api/lib/domain/services/session-results-link-service.js @@ -6,7 +6,7 @@ const generateResultsLink = function ({ sessionId, i18n }) { const token = tokenService.createCertificationResultsLinkToken({ sessionId, daysBeforeExpiration }); const lang = i18n.getLocale(); - const link = `${config.domain.pixApp + config.domain.tldOrg}/api/sessions/download-all-results/${token}?lang=${lang}`; + const link = `${config.domain.pixApp + config.domain.tldOrg}/resultats-session#${token}?lang=${lang}`; return link; }; diff --git a/api/src/shared/config.js b/api/src/shared/config.js index 0da46402572..de749df236e 100644 --- a/api/src/shared/config.js +++ b/api/src/shared/config.js @@ -421,6 +421,7 @@ const configuration = (function () { config.domain.tldOrg = '.org'; config.domain.pix = 'https://pix'; config.domain.pixOrga = 'https://orga.pix'; + config.domain.pixApp = 'https://test.app.pix'; config.features.dayBeforeRetrying = 4; config.features.dayBeforeImproving = 4; diff --git a/api/tests/unit/domain/services/session-results-link-service_test.js b/api/tests/unit/domain/services/session-results-link-service_test.js index bc99f355ac1..8fa57d2d9fb 100644 --- a/api/tests/unit/domain/services/session-results-link-service_test.js +++ b/api/tests/unit/domain/services/session-results-link-service_test.js @@ -16,7 +16,7 @@ describe('Unit | Domain | Service | Session Results Link Service', function () { const link = sessionResultsLinkService.generateResultsLink({ sessionId, i18n }); // then - expect(link).to.deep.equal('https://app.pix.org/api/sessions/download-all-results/a_valid_token?lang=fr'); + expect(link).to.deep.equal('https://test.app.pix.org/resultats-session#a_valid_token?lang=fr'); }); }); });