Redirect issue with non standard port 443

hi community!, i have an issue on redirects to ssl, the site uses https://mydomain:81/, if i have a cookie of logion, the site redirects me to https://mydomain/desk/ without port information, the issue happens when i try to reopen the web browser or when a client try to log after a password validation.
in config.json i define web port to 81, any idea??