sandstorm-io/sandstorm — pull request #85 by jparyani (2014-08-22 07:44:32+00:00)
Title: Allow linking to locations within grains

Added a query parameter to the grain route named `location`, ie: http://local.sandstorm.io:30000/grain/Jn7kgDQy3XLfBkfLRoj5g8?location=/ghost/settings. Locations must be relative, and this is enforced in proxy.js.

You can set the location from within a grain iframe with:
```
parent.postMessage({'location': '/ghost/settings'},
location.protocol + '//' + location.host.slice(location.host.indexOf('.')+1))
```