File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -112,7 +112,11 @@ export default function SearchPage() {
112112 < main className = "container margin-vert--lg" >
113113 < Heading as = "h1" > Search Results</ Heading >
114114
115- < form action = "/search" method = "get" style = { { marginBottom : "1.5rem" } } >
115+ < form
116+ action = { `${ siteConfig . baseUrl } search/` }
117+ method = "get"
118+ style = { { marginBottom : "1.5rem" } }
119+ >
116120 < input
117121 aria-label = "Search docs"
118122 className = "navbar__search-input"
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ const Search = (props: SearchBarProps) => {
5050 const query = _input . getVal ( ) ;
5151 _input . setVal ( "" ) ;
5252 _event . target . blur ( ) ;
53- history . push ( `/ search?q=${ encodeURIComponent ( query ) } ` ) ;
53+ history . push ( `${ baseUrl } search/ ?q=${ encodeURIComponent ( query ) } ` ) ;
5454 } ,
5555 maxHits : options . maxHits ,
5656 } ) ;
You can’t perform that action at this time.
0 commit comments