I have an angular app which is connecting to a server and getting a redirect URL with query parameters "Code&State"
Problem:
The query parameters are getting stripped at the time of redirecting to the URL. I observed that the stripping of parameters is happening only when the URL contains both code & state as query parameters. If I change any of the parameters it is working as expected(query parameters are not stripped).
Below is my route configuration
const routes: Routes = [
{
path: '',
component: HomeComponent,
pathMatch: 'full',
}
]
URL : https://localhost:4200?code=1234&state=12365
I tried with below query parameter combination it's working fine
URL : https://localhost:4200?code=1234&id=12365
URL : https://localhost:4200?code=1234&statee=12365
URL : https://localhost:4200?state=1234&id=12365