You need to state the name and full version number of the Story Format you are using, as answers can vary based on this information.
As far as I know none of the story formats (that come pre-installed with the Twine 2.x application) support using the web-browser's Location object to navigator between Passages.
Harlowe: This story format doesn't have a documented JavaScript API, and it is deliberately designed to restrict an Author's access to its JavaScript based engine.
SugarCube: You can use this story format's Engine.play() function to programmatically cause the story to move to another Passage.
Snowman: You can use this story format's story.show() function to programmatically cause the story to move to another Passage.