baptisteArno / typebot.io

💬 Typebot is a powerful chatbot builder that you can self-host.

Home Page:https://typebot.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Landing page bots are not displayed if the URL has query params

baptisteArno opened this issue · comments

Hey, I am new to the repo and still understanding things...
But for this issue, I can give some more context
when I try to hit the URL with the query parameter :
https://typebot.io/?test

it doesn't send the request to the startChat route :
/api/v1/typebots/typebot-id/preview/startChat

image

with a normal URL, it sends the request properly
https://typebot.io/

https://typebot.io/api/v1/typebots/typebot-id/preview/startChat

image

I tried doing the same thing locally...
But it was sending the request for both times
with and without the query parameters (I first built and then ran the project with the start script)

http://localhost:3000/?abc

http://localhost:3000/

image

I hope this helps clarify the issue.

Thank you for the help :)