I presume this is the "strange URL" you are talking about. This is normal, expected behavior. /cpanel, /webmail and /whm are provided only as a convenience, so you do not have to remember the port numbers, and these aliases will redirect to the correct ports and the URL in the browser's address bar will change.