diff --git a/.changeset/large-pumas-work.md b/.changeset/large-pumas-work.md new file mode 100644 index 00000000..cd343db9 --- /dev/null +++ b/.changeset/large-pumas-work.md @@ -0,0 +1,5 @@ +--- +"frog": patch +--- + +Fixed an issue with `browserLocation` redirects misleadingly redirecting Twitterbot due to incorrect check. diff --git a/src/frog-base.tsx b/src/frog-base.tsx index c11f2f30..7e52034f 100644 --- a/src/frog-base.tsx +++ b/src/frog-base.tsx @@ -683,7 +683,7 @@ export class FrogBase< basePath: this.basePath, path, }) - if (!renderAsHTML && browser?.name && browserLocation_) + if (!renderAsHTML && browser?.type === 'browser' && browserLocation_) return c.redirect( browserLocation_.startsWith('http') ? browserLocation_