diff --git a/.env b/.env index 6f04d163d..e080f6ba2 100644 --- a/.env +++ b/.env @@ -2,3 +2,5 @@ SKIP_PREFLIGHT_CHECK=true VITE_API_MODE=server VITE_API_BASE_HOST= VITE_VALIDATION_OPERATION_SERIES_EXTRA_MANDATORY_FIELDS=accrualPeriodicityCode,typeCode +VITE_CONCEPTS_DOCUMENTATION = 'https://inseefr.github.io/Bauhaus/fr/guides/user-guide/concept/' +VITE_OPERATIONS_DOCUMENTATION = 'https://metadonnees.gitlab-pages.insee.fr/rmes/offre-de-service-rmes/#pages/operation-aide' diff --git a/src/packages/modules-concepts/menu/index.tsx b/src/packages/modules-concepts/menu/index.tsx index 14499f5a8..b078f26bf 100644 --- a/src/packages/modules-concepts/menu/index.tsx +++ b/src/packages/modules-concepts/menu/index.tsx @@ -1,7 +1,6 @@ -import D from '../../deprecated-locales'; import { useLocation } from 'react-router-dom'; import { MainMenu } from '../../components/menu'; -import { getLang } from '../../utils/dictionnary'; +import D from '../../deprecated-locales'; const defaultAttrs = { 'aria-current': 'page' }; @@ -22,7 +21,7 @@ const MenuConcepts = () => { alignToRight: true, }, { - path: `//inseefr.github.io/Bauhaus/${getLang()}/guides/user-guide/concept/`, + path: import.meta.env.VITE_CONCEPTS_DOCUMENTATION, pathKey: 'help', className: null, order: 4, diff --git a/src/packages/modules-operations/menu/index.jsx b/src/packages/modules-operations/menu/index.jsx index e2c642d43..e78eb9914 100644 --- a/src/packages/modules-operations/menu/index.jsx +++ b/src/packages/modules-operations/menu/index.jsx @@ -36,7 +36,7 @@ export class MenuOperations extends Component { label: D.indicatorsTitle, }, help: { - path: '//metadonnees.gitlab-pages.insee.fr/rmes/offre-de-service-rmes/#pages/operation-aide', + path: import.meta.env.VITE_OPERATIONS_DOCUMENTATION, attrs: { target: '_blank', },