new URL(LOGIN_SERVICE_URL)
                if (/=$/.test(loginUrl.search)) {
                    return LOGIN_SERVICE_URL + cUrl
                } else {
                    loginUrl.searchParams.set('c_url', cUrl)
                    return loginUrl.href
                }
            }
        }

        const search = new URL(location.href).searchParams // redirect/token/download/?preview
        const redirect = search.get('redirect')
        if (redirect) {
            search.delete('redirect')

       