Skip to content

Commit ac472b2

Browse files
committed
add to="."
1 parent 37acf84 commit ac472b2

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/components/DocsLayout.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ function useCurrentFramework(frameworks: Framework[]) {
8787
}
8888

8989
navigate({
90+
to: '.',
9091
params: (prev) => ({
9192
...prev,
9293
framework,
@@ -159,6 +160,7 @@ function useCurrentVersion(versions: string[]) {
159160
const setVersion = React.useCallback(
160161
(version: string) => {
161162
navigate({
163+
to: '.',
162164
params: (prev) => ({
163165
...prev,
164166
version,

0 commit comments

Comments
 (0)