Passes an input integer to a url and detects if there is a redirect and shows its proper path.