diff --git a/src/util/constants.ts b/src/util/constants.ts index 29ca34d84..2bb88be56 100644 --- a/src/util/constants.ts +++ b/src/util/constants.ts @@ -41,7 +41,7 @@ export const MAP_COLORS = ['#0078C0', '#FF9800', '#1976D2', '#D32F2F', '#E040FB' * @readonly * @const {string} */ -export const PTP_URL = 'https://ptp.hel.fi'; +export const PAIKKATIETOPALVELU_URL = 'https://ptp.hel.fi'; /** * Delete modal button text diff --git a/src/util/helpers.tsx b/src/util/helpers.tsx index eb050388a..f25e8c4d4 100644 --- a/src/util/helpers.tsx +++ b/src/util/helpers.tsx @@ -9,7 +9,7 @@ import isEmpty from "lodash/isEmpty"; import isNumber from "lodash/isNumber"; import { toastr } from "react-redux-toastr"; import ToastrIcons from "components/toastr/ToastrIcons"; -import { PTP_URL } from "util/constants"; +import { PAIKKATIETOPALVELU_URL } from "util/constants"; import { Breakpoints } from "foundation/enums"; import type { ApiResponse, Attributes, Methods } from "types"; import type { UsersPermissions } from "usersPermissions/types"; @@ -637,14 +637,14 @@ export const findFromOcdString = (ocd: string, key: string): string | null | und * @param {string} reportId * @returns {string} */ -export const createPTPPlanReportUrl = (reportId: string): string => `${PTP_URL}/DataForms/planreport/?id=${reportId}`; +export const createPTPPlanReportUrl = (reportId: string): string => `${PAIKKATIETOPALVELU_URL}/DataForms/planreport/?id=${reportId}`; /** * Create url to ptp.hel.fi * @param {string} plotDivisionId * @returns {string} */ -export const createPTPPlotDivisionUrl = (plotDivisionId: string): string => `${PTP_URL}/DataHandlers/Tonttijaot/?q=${plotDivisionId}`; +export const createPTPPlotDivisionUrl = (plotDivisionId: string): string => `${PAIKKATIETOPALVELU_URL}/DataHandlers/Tonttijaot/?q=${plotDivisionId}`; /** * Get count of results from api response