Skip to content

Commit

Permalink
b - forhindrer 404 ved ny søknad
Browse files Browse the repository at this point in the history
  • Loading branch information
toresbe committed Nov 21, 2024
1 parent 50d32d3 commit 0e13388
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sider/hovedmeny/nySoknad/NySoknadInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {hentXsrfCookie} from "../../../generated/soknad-ressurs/soknad-ressurs.t
import {SoknadstypeValg} from "./SoknadstypeValg.tsx";
import {useCreateSoknad} from "./useCreateSoknad.tsx";
import {useAmplitudeSkjemaStartet} from "./useAmplitudeSkjemaStartet.tsx";
import {BASE_PATH} from "../../../lib/constants.ts";

export const NySoknadInfo = () => {
const [startSoknadPending, setStartSoknadPending] = useState<boolean>(false);
Expand All @@ -26,7 +27,7 @@ export const NySoknadInfo = () => {
try {
const {soknadId} = await createSoknad(soknadstype);
await hentXsrfCookie(soknadId);
window.location.assign(`skjema/${soknadId}/1`);
window.location.assign(`${BASE_PATH}/skjema/${soknadId}/1`);
} catch (e: any) {
setStartSoknadError(e);
setStartSoknadPending(false);
Expand Down

0 comments on commit 0e13388

Please sign in to comment.