mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-04 01:09:20 +02:00
fix: use useBaseUrl()
This commit is contained in:
parent
1298f8c461
commit
72b319a293
1 changed files with 2 additions and 2 deletions
|
@ -7,14 +7,14 @@
|
|||
|
||||
import {useHistory, useLocation} from '@docusaurus/router';
|
||||
import ExecutionEnvironment from '@docusaurus/ExecutionEnvironment';
|
||||
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
|
||||
import useBaseUrl from '@docusaurus/useBaseUrl';
|
||||
|
||||
const SEARCH_PARAM_QUERY = 'q';
|
||||
|
||||
function useSearchQuery() {
|
||||
const history = useHistory();
|
||||
const location = useLocation();
|
||||
const {siteConfig: {baseUrl} = {}} = useDocusaurusContext();
|
||||
const baseUrl = useBaseUrl('');
|
||||
|
||||
return {
|
||||
searchValue:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue