Backtab Integration
//For YOUR_DESTINATION_URL, dynamically insert the URL specific to the user's search results page.
var destination_url = "YOUR_DESTINATION_URL";
try {
if (IntentMedia.get('should_open_in_new_tab')) {
window.open(destination_url, '_blank');
IntentMedia.trigger('redirect_to_exit_unit');
}
else {
IntentMedia.trigger('open_exit_unit');
window.location.href = destination_url;
}
}
catch (err) {
window.location.href = destination_url;
}