Trying again ...

Is this the best way to store the location? Changing the window location (aka redirecting) seems like an an odd thing here and *doesn't match up with the name of the function.* It might be better to return the location (or false/undefined) and handle the result elsewhere.