diff --git a/www/docs/src/theme/SearchBar/index.js b/www/docs/src/theme/SearchBar/index.js index 8a02964519..67cca9ece3 100644 --- a/www/docs/src/theme/SearchBar/index.js +++ b/www/docs/src/theme/SearchBar/index.js @@ -132,7 +132,9 @@ function DocSearch({ contextualSearch, ...props }) { const navigator = useRef({ navigate({ 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 }) { let url = replaceUrl(item)