fixes URL redirects