From 92108452f2874ae18e240d1f2a846def176a68a8 Mon Sep 17 00:00:00 2001 From: Rafael dos Santos Silva Date: Thu, 6 Jun 2024 15:13:51 -0300 Subject: [PATCH] FIX: AI Bot Shared Conversation didn't respect CDN / Subfolder (#657) --- .../discourse_ai/ai_bot/shared_ai_conversations_helper.rb | 2 +- .../discourse_ai/ai_bot/shared_ai_conversations/show.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/helpers/discourse_ai/ai_bot/shared_ai_conversations_helper.rb b/app/helpers/discourse_ai/ai_bot/shared_ai_conversations_helper.rb index 3e16311c..6d064683 100644 --- a/app/helpers/discourse_ai/ai_bot/shared_ai_conversations_helper.rb +++ b/app/helpers/discourse_ai/ai_bot/shared_ai_conversations_helper.rb @@ -8,7 +8,7 @@ module DiscourseAi VERSION = "1" def share_asset_url(short_path) - ::UrlHelper.local_cdn_url("/plugins/discourse-ai/ai-share/#{short_path}?#{VERSION}") + ::UrlHelper.absolute("/plugins/discourse-ai/ai-share/#{short_path}?#{VERSION}") end end end diff --git a/app/views/discourse_ai/ai_bot/shared_ai_conversations/show.html.erb b/app/views/discourse_ai/ai_bot/shared_ai_conversations/show.html.erb index a10a85ee..ac307a9b 100644 --- a/app/views/discourse_ai/ai_bot/shared_ai_conversations/show.html.erb +++ b/app/views/discourse_ai/ai_bot/shared_ai_conversations/show.html.erb @@ -10,7 +10,7 @@ "> - "> + ">