diff --git a/src/util/helpers.tsx b/src/util/helpers.tsx index c4f1b0e30..6a71b8298 100644 --- a/src/util/helpers.tsx +++ b/src/util/helpers.tsx @@ -307,7 +307,7 @@ export const getApiUrlWithOutVersionSuffix = (): string => { * @returns {string} */ export const getReferenceNumberLink = (referenceNumber: string | null | undefined): string | null | undefined => { - const apiUrl = 'https://dev.hel.fi/paatokset/asia'; + const apiUrl = 'https://paatokset.hel.fi/asia'; return referenceNumber ? `${apiUrl}/${referenceNumber.replace(' ', '-').toLowerCase()}` : null; }; diff --git a/src/util/spec.ts b/src/util/spec.ts index 02023e645..8cc9e5bd3 100644 --- a/src/util/spec.ts +++ b/src/util/spec.ts @@ -609,8 +609,8 @@ describe('utils', () => { expect(formatDateRange(null, null)).to.deep.equal(''); }); it('should get reference number link', () => { - expect(getReferenceNumberLink('123')).to.deep.equal('https://dev.hel.fi/paatokset/asia/123'); - expect(getReferenceNumberLink('123 456')).to.deep.equal('https://dev.hel.fi/paatokset/asia/123-456'); + expect(getReferenceNumberLink('123')).to.deep.equal('https://paatokset.hel.fi/asia/123'); + expect(getReferenceNumberLink('123 456')).to.deep.equal('https://paatokset.hel.fi/asia/123-456'); expect(getReferenceNumberLink(null)).to.deep.equal(null); }); it('should find item from collection by id', () => {