Replace login URL with instance URL to prevent redirection