mirror of
https://github.com/abhinavxd/libredesk.git
synced 2026-11-01 00:52:38 +00:00
15 lines
311 B
Go
15 lines
311 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/`,
|
|
)
|
|
}
|