File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -7,9 +7,6 @@ import IconArrowSmalldown from '../../assets/images/arrow-small-down.svg'
7
7
import IconArrowSmallup from '../../assets/images/arrow-small-up.svg'
8
8
import MagnifyingGlass from '../../assets/images/magnifying_glass.svg'
9
9
import styles from './PrimaryNav.module.scss'
10
- import { config } from 'topcoder-react-utils'
11
-
12
- const BASE_URL = config . URL . BASE
13
10
14
11
const PrimaryNav = ( {
15
12
collapsed,
@@ -169,7 +166,7 @@ const PrimaryNav = ({
169
166
ref = { createSetRef ( 'searchInputBox' ) }
170
167
onKeyPress = { ( event ) => {
171
168
if ( event . key === 'Enter' ) {
172
- window . location = `${ BASE_URL } /search/members?q=${
169
+ window . location = `${ window . origin } /search/members?q=${
173
170
encodeURIComponent ( event . target . value )
174
171
} `
175
172
}
You can’t perform that action at this time.
0 commit comments