This repository was archived by the owner on Sep 18, 2024. It is now read-only.
File tree 3 files changed +9
-5
lines changed
3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 1
1
ENV = localhost
2
2
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
4
4
APP_BASE_URL = http://localhost:8088
5
5
APP_BASE_PATH = /dekoratoren
6
6
API_XP_SERVICES_URL = https://www.nav.no/_/service
Original file line number Diff line number Diff line change @@ -92,10 +92,10 @@ export const SokResultater = (props: Props) => {
92
92
{ result . total } { finnTekst ( 'sok-resultater' , language ) }
93
93
</ div >
94
94
{ 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 >
99
99
) }
100
100
</ div >
101
101
) : null }
Original file line number Diff line number Diff line change @@ -5,6 +5,10 @@ const sokServiceUrl = `${process.env.SEARCH_URL}/content/decorator-search`;
5
5
export const getSokHandler : RequestHandler = ( req , res ) => {
6
6
const queryString = new URL ( req . url , process . env . APP_BASE_URL ) . search ;
7
7
8
+ console . log ( sokServiceUrl ) ;
9
+
10
+ console . log ( queryString ) ;
11
+
8
12
fetch ( `${ sokServiceUrl } ${ queryString } ` )
9
13
. then ( ( response ) => {
10
14
if ( response . status === 200 ) {
You can’t perform that action at this time.
0 commit comments