acdlite / redux-router

Redux bindings for React Router – keep your router state inside your Redux store
MIT License
2.3k stars 216 forks source link

Add failing test for redirect with query string in onEnter #275

Closed leonderijke closed 6 years ago

leonderijke commented 7 years ago

When using the query parameter in the redirect call in the onEnter hook, the query is added twice. This can be seen in the failing test output:

AssertionError: expected [ 'value', 'value' ] to equal 'value'

Use case for the query parameter: redirect the user to the requested path after logging in.