fix urls for redirects