Skip to content

Commit 7afec7a

Browse files
fix search
1 parent cacaa9a commit 7afec7a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/components/TopNav/PrimaryNav.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ import IconArrowSmalldown from '../../assets/images/arrow-small-down.svg'
77
import IconArrowSmallup from '../../assets/images/arrow-small-up.svg'
88
import MagnifyingGlass from '../../assets/images/magnifying_glass.svg'
99
import styles from './PrimaryNav.module.scss'
10-
import { config } from 'topcoder-react-utils'
11-
12-
const BASE_URL = config.URL.BASE
1310

1411
const PrimaryNav = ({
1512
collapsed,
@@ -169,7 +166,7 @@ const PrimaryNav = ({
169166
ref={createSetRef('searchInputBox')}
170167
onKeyPress={(event) => {
171168
if (event.key === 'Enter') {
172-
window.location = `${BASE_URL}/search/members?q=${
169+
window.location = `${window.origin}/search/members?q=${
173170
encodeURIComponent(event.target.value)
174171
}`
175172
}

0 commit comments

Comments
 (0)