Doesn't work if site handle has dots)
Closed this issue · 1 comments
lotarbo commented
Hello, I use domain as site handle.
And i have 403 error on broadcasting/auth
I think it because method channelNameMatchesPattern returns false
This is what i have
$channel = entry.c3377fe3-0335-4f7f-9827-36228c855b29.example.com
$pattern = entry.{id}.{site}
Statamic 4.25.0
lotarbo commented
if i modify
from
this.channelName = `${reference}.${this.container.site}\`;
to
this.channelName = `${reference}.${this.container.site.replaceAll('.','_') }`;
it works)