This ticket was originally filed on Jira: https://mattermost.atlassian.net/browse/MM-28980
When creating a channel mention link with fmt.Sprintf("~%s", channel.Name) in a message attachment, the behaviour is both inconsistent and buggy:
post := &model.Post{
Message: message,
Props: map[string]interface{}{
"attachments": []*model.SlackAttachment{
{
Title: fmt.Sprintf("~%s", channel.Name),
Text: fmt.Sprintf("~%s", channel.Name),
Pretext: fmt.Sprintf("~%s", channel.Name),
},
},
},
}
The link should in all cases redirect to the channel without a page refresh nor opening a different tab.
For the mobile problem, probably the text is just not parsed through the Markdown parser.
For webapp, there might be problems in the markdown parser, so it mark the links properly as internal links.
FYI, my PR is only for the webapp issue
Most helpful comment
FYI, my PR is only for the webapp issue