Use location instead of state
Test forwarding to right page