Changed window.location.href to search.

When receiving a call back with extra non-query chars at the end of the URL, the Adapter adds these extra non-query chars to the end of the "state" var. For instance: 

?abc=def#/

The appropriate value for 'abc' is 'def', and before this change, it was parsing as 'def#/'.