Description
The Open in Chat button on the documentation website generates an invalid URL.
Instead of using the current documentation page’s URL, it produces a link containing https://undefined/.
Example of an invalid link: https://cursor.com/link/prompt?text=Read+this+page%2C+I+want+to+ask+questions+about+it.+https%3A%2F%2Fundefined%2F
Steps to reproduce:
- Go to https://ai-sdk.dev/elements
- Click on the "Open in chat" button on the right sidebar
- Hover on any link, and it will contain
undefined as the hostname
AI SDK Version
No response
Code of Conduct