use current url directly instead of guessing it

fixes behavior in reverse proxy mode