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

Commit e8f9afb

Browse files
committed
Fikset en url, logging
1 parent 7d33b3b commit e8f9afb

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

.env

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ENV=localhost
22
XP_BASE_URL=https://www.nav.no
3-
SEARCH_URL=https://navno-search-api.intern.nav.no
3+
SEARCH_URL=https://navno-search-api.intern.dev.nav.no
44
APP_BASE_URL=http://localhost:8088
55
APP_BASE_PATH=/dekoratoren
66
API_XP_SERVICES_URL=https://www.nav.no/_/service

src/komponenter/header/header-regular/common/sok/sok-innhold/SokResultater.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,10 @@ export const SokResultater = (props: Props) => {
9292
{result.total} {finnTekst('sok-resultater', language)}
9393
</div>
9494
{result.total > itemsFiltered.length && (
95-
<Link className={'typo-element'} href={`${XP_BASE_URL}/sok?ord=${writtenInput}`}>{`${finnTekst(
96-
'se-alle-treff',
97-
language
98-
)} ("${writtenInput}")`}</Link>
95+
<Link
96+
className={'typo-element'}
97+
href={`${XP_BASE_URL}/nytt-sok?ord=${writtenInput}`}
98+
>{`${finnTekst('se-alle-treff', language)} ("${writtenInput}")`}</Link>
9999
)}
100100
</div>
101101
) : null}

src/server/api-handlers/sok.ts

+4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ const sokServiceUrl = `${process.env.SEARCH_URL}/content/decorator-search`;
55
export const getSokHandler: RequestHandler = (req, res) => {
66
const queryString = new URL(req.url, process.env.APP_BASE_URL).search;
77

8+
console.log(sokServiceUrl);
9+
10+
console.log(queryString);
11+
812
fetch(`${sokServiceUrl}${queryString}`)
913
.then((response) => {
1014
if (response.status === 200) {

0 commit comments

Comments
 (0)