'iOS TikTok's internal browser doesn't activate javascript redirect to url

When my page is opened from tapping the link on a TikTok iOS app profile, my javascript redirect doesn't fire when the page is loaded in the webview. If you hit https://pillar.io/paul the page will redirect to a registration page, but the redirect doesn't work if the page is opened inside the TikTok iOS app's internal browser (it works on Android).

I have tried the following methods to do the js redirect. Each one has worked in every case other than being loaded inside the TikTok app. Is there anything else I can try? 🙏🏻

window.open(url)
window.location.replace(url)
window.location = url
window.location.href = url
location.href = url
document.location.assign(url)


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source