Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1371 from navikt/stepup-url
Browse files Browse the repository at this point in the history
Bug-fix, redirecte med riktig paramterer til loginservice.
  • Loading branch information
Amirhlotfi authored Jan 31, 2023
2 parents 6a1ce79 + e799a2c commit 34f66a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const VarselListe = ({ varsler, rowIndex }: Props) => {
apiVarselinnboksUrl={API_DEKORATOREN_URL}
tekst={o.tekst}
dato={formatDato(o.tidspunkt)}
href={o.isMasked ? getLoginUrl(environment, arbeidsflate, '4') : o.link}
href={o.isMasked ? getLoginUrl(environment, arbeidsflate, 'Level4') : o.link}
isMasked={o.isMasked}
id={
rowIndex !== undefined && subIndex !== undefined
Expand Down Expand Up @@ -87,7 +87,7 @@ export const VarselListe = ({ varsler, rowIndex }: Props) => {
apiVarselinnboksUrl={API_DEKORATOREN_URL}
tekst={b.tekst}
dato={formatDato(b.tidspunkt)}
href={b.isMasked ? getLoginUrl(environment, arbeidsflate, '4') : b.link}
href={b.isMasked ? getLoginUrl(environment, arbeidsflate, 'Level4') : b.link}
isMasked={b.isMasked}
id={
rowIndex !== undefined && subIndex !== undefined
Expand Down
2 changes: 1 addition & 1 deletion src/utils/login.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const getRedirectUrl = (environment: Environment, arbeidsflate: MenuValue) => {
return MIN_SIDE_URL;
};

export const getLoginUrl = (environment: Environment, arbeidsflate: MenuValue, level?: '3' | '4') => {
export const getLoginUrl = (environment: Environment, arbeidsflate: MenuValue, level?: string) => {
const { LOGIN_URL, PARAMS } = environment;
const { LEVEL } = PARAMS;

Expand Down

0 comments on commit 34f66a4

Please sign in to comment.