We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cacaa9a commit 7afec7aCopy full SHA for 7afec7a
src/components/TopNav/PrimaryNav.js
@@ -7,9 +7,6 @@ import IconArrowSmalldown from '../../assets/images/arrow-small-down.svg'
7
import IconArrowSmallup from '../../assets/images/arrow-small-up.svg'
8
import MagnifyingGlass from '../../assets/images/magnifying_glass.svg'
9
import styles from './PrimaryNav.module.scss'
10
-import { config } from 'topcoder-react-utils'
11
-
12
-const BASE_URL = config.URL.BASE
13
14
const PrimaryNav = ({
15
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=${
+ window.location = `${window.origin}/search/members?q=${
173
encodeURIComponent(event.target.value)
174
}`
175
}
0 commit comments