Error if Angular route contains specific query parameters

I have the same issue. but mine is only if the ‘state’ parameter is present in the URL, ‘code’ seems to be ok for my redirect. But ‘state’ is causing problems. I don’t know why