diff --git a/static/js/find_route.js b/static/js/find_route.js index 52245c6..288149f 100644 --- a/static/js/find_route.js +++ b/static/js/find_route.js @@ -23,3 +23,11 @@ function show_inf_carrier (el) { } +function open_chat (user_id){ + event.preventDefault() + let host = window.location.origin + let user_id_ = user_id.toString() + let href = host + '/ru/profile/chat/' + user_id_ + // window.location.href = host + '/profile/chat/' + user_id + window.location.replace(href) +} \ No newline at end of file