useHistory with external URL #8495
Labels
closed: working as intended
This issue is intended behavior, there's no need to take any action.
external
This issue is caused by an external dependency and not Docusaurus.
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clear
oryarn clear
command.rm -rf node_modules yarn.lock package-lock.json
and re-installing packages.Description
Hello,
i am using the plugin "easyops-cn/docusaurus-search-local", this plugin create an autocomplete and when click on an element the code call the
useHistory.push(url);
.But when i specify an external url (example: https://www.google.com/) the router open "http://localhost:3000/https://www.google.com/" not only "https://www.google.com/".
I have test with a single page and this page doesnt open the external url.
Reproducible demo
No response
Steps to reproduce
Expected behavior
i want to open an external url with the method push of the history
Actual behavior
The external url is not open, docusaurus detect the url for his system of route
Your environment
Self-service
The text was updated successfully, but these errors were encountered: