Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit 9210845

Browse files
authored
FIX: AI Bot Shared Conversation didn't respect CDN / Subfolder (#657)
1 parent 3993c68 commit 9210845

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/helpers/discourse_ai/ai_bot/shared_ai_conversations_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module SharedAiConversationsHelper
88
VERSION = "1"
99

1010
def share_asset_url(short_path)
11-
::UrlHelper.local_cdn_url("/plugins/discourse-ai/ai-share/#{short_path}?#{VERSION}")
11+
::UrlHelper.absolute("/plugins/discourse-ai/ai-share/#{short_path}?#{VERSION}")
1212
end
1313
end
1414
end

app/views/discourse_ai/ai_bot/shared_ai_conversations/show.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<meta name="twitter:title" content="<%= I18n.t("discourse_ai.share_ai.title", title: @shared_conversation.title, site_name: SiteSetting.title) %>">
1111
<meta name="twitter:description" content="<%= @shared_conversation.formatted_excerpt %>">
1212
<meta name="viewport" content="width=device-width">
13-
<link rel="stylesheet" href="<%= ::UrlHelper.local_cdn_url("/plugins/discourse-ai/ai-share/share.css") %>">
13+
<link rel="stylesheet" href="<%= ::UrlHelper.absolute("/plugins/discourse-ai/ai-share/share.css") %>">
1414
</head>
1515
<body>
1616
<header class="site-header">

0 commit comments

Comments
 (0)