Skip to content

Commit 16dca1a

Browse files
committed
Bytt personoversikt url til intern.nav.no
Og fjerne 'ADEO' som urlFormat. Den skal ikke brukes lenger
1 parent d7efafd commit 16dca1a

File tree

3 files changed

+4
-14
lines changed

3 files changed

+4
-14
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export type Environment =
107107
| 'local'
108108
| 'mock';
109109

110-
export type UrlFormat = 'LOCAL' | 'ADEO' | 'NAV_NO' | 'ANSATT'; // UrlFormat. Brukes om proxy ikke er satt & i url til websocket.
110+
export type UrlFormat = 'LOCAL' | 'NAV_NO' | 'ANSATT'; // UrlFormat. Brukes om proxy ikke er satt & i url til websocket.
111111

112112
export interface HotkeyObject {
113113
char: string;

packages/internarbeidsflate-decorator-v3/src/utils/environmentUtils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ export type Environment =
88
| 'local'
99
| 'mock';
1010

11-
export type UrlFormat = 'LOCAL' | 'ADEO' | 'NAV_NO' | 'ANSATT';
11+
export type UrlFormat = 'LOCAL' | 'NAV_NO' | 'ANSATT';

packages/internarbeidsflate-decorator-v3/src/utils/urlUtils.ts

+2-12
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ const findEnvString = (environment: Environment) => {
3838
}
3939
return `-${environment}`;
4040
};
41-
const adeoDomain = (environment: Environment) =>
42-
`https://app${findEnvString(environment)}.adeo.no`;
4341

4442
const naisAdeoDomain = (
4543
environment: Environment,
@@ -71,12 +69,8 @@ const modiaUrl = (
7169
fnr: string | undefined | null,
7270
path: string,
7371
environment: Environment,
74-
urlFormat: UrlFormat,
7572
) => {
76-
const basePath =
77-
urlFormat === 'ADEO' || environment === 'prod'
78-
? adeoDomain(environment) + '/modiapersonoversikt'
79-
: 'https://modiapersonoversikt' + naisDomain(environment);
73+
const basePath = 'https://modiapersonoversikt' + naisDomain(environment);
8074

8175
return fnr ? basePath + path : basePath;
8276
};
@@ -93,10 +87,6 @@ export const modiaContextHolderUrl = (
9387
switch (urlFormat) {
9488
case 'LOCAL':
9589
return 'http://localhost:4000';
96-
case 'ADEO':
97-
return `https://app${findEnvString(
98-
environment,
99-
)}.adeo.no/modiacontextholder`;
10090
case 'NAV_NO':
10191
case 'ANSATT':
10292
return `https://modiacontextholder${naisDomain(environment)}`;
@@ -203,7 +193,7 @@ export const buildLinks = ({
203193
}: BuildLinksProps): LinkObject => {
204194
return {
205195
modiaUrl: {
206-
url: modiaUrl(fnr, `/person`, environment, urlFormat),
196+
url: modiaUrl(fnr, `/person`, environment),
207197
},
208198
veilarbportefoljeUrl: {
209199
url: `https://veilarbportefoljeflate${naisDomain(environment)}`,

0 commit comments

Comments
 (0)