| @@ -404,14 +404,14 @@ | ||
| 404 | 404 | if (sourceUrl) { |
| 405 | 405 | var postId = source.post_id || ''; |
| 406 | 406 | var title = source.title || wpforo_phrase('View topic'); |
| 407 | 407 | var isWordPress = source.content_source === 'wordpress'; |
| 408 | - // Format: [icon 123] for WordPress, [123] for forum | |
| 408 | + // Format: Title [icon 123] for WordPress, Title [123] for forum | |
| 409 | 409 | var wpIcon = '<svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" style="fill:transparent; margin: 0 1px; width: 13px; height: 13px;" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="vertical-align:-2px;margin-right:2px"><path d="M4 4h16v16H4z"/><path d="M8 8h8"/><path d="M8 12h8"/><path d="M8 16h5"/></svg>'; |
| 410 | 410 | var idPrefix = isWordPress ? wpIcon : ''; |
| 411 | 411 | sourcesHtml += '<a href="' + escapeHtml(sourceUrl) + '" class="wpf-ai-chat-msg-source" target="_blank">'; |
| 412 | - sourcesHtml += postId ? '[' + idPrefix + escapeHtml(postId) + '] ' : ''; | |
| 413 | 412 | sourcesHtml += escapeHtml(title); |
| 413 | + sourcesHtml += postId ? ' [' + idPrefix + escapeHtml(postId) + ']' : ''; | |
| 414 | 414 | sourcesHtml += '</a>'; |
| 415 | 415 | } |
| 416 | 416 | }); |
| 417 | 417 | // Only add sources section if we have valid source links |