diff --git a/api/link.js b/api/link.js index 4e411ec19f..b78770a7c6 100644 --- a/api/link.js +++ b/api/link.js @@ -98,62 +98,82 @@ const html = ` - + +
+ + + + + +if (link && notLiveView) { - + link += '?live=false'; + +} + +if (link) { + + const resp = decodeLink(link); + + // redirect to decoded URL + window.location.replace(resp); + +} else { + + window.location.replace(window.location.origin); + +} + + + +