Skip to content

Commit

Permalink
Fix URL reading issue in [..url]/page.tsx (#99)
Browse files Browse the repository at this point in the history
Update page.tsx - replace "//" with "/" in decodedComponents.join() - url was not reading before and the bot wouldn't answer questions correctly.
  • Loading branch information
DavidDragan1 authored Jan 17, 2025
1 parent 90481f0 commit 2934d94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/nextjs/chat-to-website/src/app/[...url]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ interface PageProps {
function reconstructUrl({ url }: { url: string[] }) {
const decodedComponents = url.map((component) => decodeURIComponent(component));

return decodedComponents.join("//");
return decodedComponents.join("/");
}

const Page = async ({ params }: PageProps) => {
Expand Down

0 comments on commit 2934d94

Please sign in to comment.