<!doctype html>
<html lang="en">

<head>

<body onload="RedirectUrl()">
    <script>
        function RedirectUrl() {
            const hostName = window.location.hostname;
            if (hostName.indexOf('homesmart.ikea.net') !== -1) {
                if (location.search.indexOf('token=') > 0) {
                    const access_token = location.search.split('token=')[1];
                    if ((typeof access_token === 'undefined') || access_token.length > 0) {
                        window.location = "ihs://ciam.signup.redirection" + "?token=" + access_token;
                    }
                } else {
                    window.location = "ihs://ciam.signup.redirection";
                }
            }
        }
    </script>
</body>
</head>

</html>