Unwanted Text Me the App link for $canonical_url in sendSMS of Web SDK

When the $canonical_url is not explicitly mentioned in the sendSMS call, the Branch Web SDK would auto-assign the $canonical_url of the 'referrer' page in the Text Me the App (TMTA) generated Branch link. This causes an undesired behavior for the users opening the app via TMTA and navigating to a different page (the referer page) in the mobile app. If the intent is to direct the user to the home page, please add the canonical_url and the value within the data: section as shown below.

var linkData = {
tags: [],
channel: '',
feature: '',
data: {
'foo': 'bar'
'cannonical_url': 'https://www.foo.com/'
}
};

Did this page help you?