Append scope to the redirect url if needed