fix(wizard): restore message pipeline setup and page bot preview

This commit is contained in:
RockChinQ
2026-09-18 16:01:55 +08:00
parent 60606e1997
commit bece2aa554
13 changed files with 323 additions and 435 deletions
@@ -199,7 +199,9 @@ class EmbedRouterGroup(group.RouterGroup):
base_url = quart.request.host_url.rstrip('/')
webhook_prefix = self.ap.instance_config.data.get('api', {}).get('webhook_prefix', '')
if webhook_prefix:
# The wizard previews the currently connected backend, which can
# differ from the public address used by external website embeds.
if webhook_prefix and quart.request.args.get('preview') != 'wizard':
base_url = webhook_prefix.rstrip('/')
if not re.match(r'^https?://[a-zA-Z0-9._:/-]+$', base_url):