Skip to content

Commit dc9cc7e

Browse files
authored
fix: Brand page error (#49)
1 parent 82cc02c commit dc9cc7e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/lib/layout.shared.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export function baseOptions(): BaseLayoutProps {
1515

1616
const handleRightClick = async (e: React.MouseEvent) => {
1717
e.preventDefault();
18-
await navigate({ to: "/docs/$", params: { _splat: "brand" } });
18+
await navigate({ to: "/docs/$", params: { _splat: "brand" }, reloadDocument: true });
1919
};
2020
return {
2121
nav: {

src/routes/docs/$.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export const Route = createFileRoute("/docs/$")({
3333
const loader = createServerFn({
3434
method: "GET",
3535
})
36-
.inputValidator((slugs: string[]) => slugs)
36+
.validator((slugs: string[]) => slugs)
3737
.middleware([staticFunctionMiddleware])
3838
.handler(async ({ data: slugs }) => {
3939
const page = source.getPage(slugs);

0 commit comments

Comments
 (0)