fix: docsearch link behaviour on navigate (#368)
This commit is contained in:
@@ -132,7 +132,9 @@ function DocSearch({ contextualSearch, ...props }) {
|
|||||||
const navigator = useRef({
|
const navigator = useRef({
|
||||||
navigate({ item }) {
|
navigate({ item }) {
|
||||||
let url = replaceUrl(item)
|
let url = replaceUrl(item)
|
||||||
history.push(url)
|
//Need to type out the entire URL to prevent it from attempting to open the page
|
||||||
|
//as part of the docusaurus project. Which will fail.
|
||||||
|
window.location = `https://docs.medusa-commerce.com${url}`
|
||||||
},
|
},
|
||||||
navigateNewTab({ item }) {
|
navigateNewTab({ item }) {
|
||||||
let url = replaceUrl(item)
|
let url = replaceUrl(item)
|
||||||
|
|||||||
Reference in New Issue
Block a user