diff --git a/static/js/user_profile_2.js b/static/js/user_profile_2.js index 9b21eaa..b78c79c 100644 --- a/static/js/user_profile_2.js +++ b/static/js/user_profile_2.js @@ -766,8 +766,12 @@ function send_subscribe (id,for_movers,subscribe){ // enctype: 'json', data: JSON.stringify(data), success: function (data) { - - document.querySelector(".info_profile").innerHTML = data.html; + if (data.html) { + document.querySelector(".info_profile").innerHTML = data.html; + } + if (data.redirect_url){ + window.location.href = data.redirect_url + } }, error: function (data) {