Files
libredesk/internal/conversation/conversation_reference.go
Abhinav Raut 43c007ef9e improve notification previews and editor AI
Show the latest reply in alerts without quoted email history. Share AI prompts across conversation editors and clarify browser notification settings.
2026-09-16 01:54:35 +05:30

17 lines
316 B
Go

package conversation
import (
"strings"
)
func absolutizeConversationReferenceLinks(content, rootURL string) string {
if rootURL == "" {
return content
}
return strings.ReplaceAll(
content,
`href="/inboxes/all/conversation/`,
`href="`+strings.TrimRight(rootURL, "/")+`/inboxes/all/conversation/`,
)
}