{"action":"created","issue":{"url":"https://api.github.com/repos/sandstorm-io/sandstorm/issues/1848","repository_url":"https://api.github.com/repos/sandstorm-io/sandstorm","labels_url":"https://api.github.com/repos/sandstorm-io/sandstorm/issues/1848/labels{/name}","comments_url":"https://api.github.com/repos/sandstorm-io/sandstorm/issues/1848/comments","events_url":"https://api.github.com/repos/sandstorm-io/sandstorm/issues/1848/events","html_url":"https://github.com/sandstorm-io/sandstorm/issues/1848","id":148631737,"number":1848,"title":"Who's responsibility is to redirect directly opened URLs to the Sandstorm URL?","user":{"login":"mitar","id":585279,"avatar_url":"https://avatars.githubusercontent.com/u/585279?v=3","gravatar_id":"","url":"https://api.github.com/users/mitar","html_url":"https://github.com/mitar","followers_url":"https://api.github.com/users/mitar/followers","following_url":"https://api.github.com/users/mitar/following{/other_user}","gists_url":"https://api.github.com/users/mitar/gists{/gist_id}","starred_url":"https://api.github.com/users/mitar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitar/subscriptions","organizations_url":"https://api.github.com/users/mitar/orgs","repos_url":"https://api.github.com/users/mitar/repos","events_url":"https://api.github.com/users/mitar/events{/privacy}","received_events_url":"https://api.github.com/users/mitar/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-04-15T11:11:59Z","updated_at":"2016-04-22T15:53:45Z","closed_at":"2016-04-15T19:17:01Z","body":"I see in the Rocket.Chat app that I can open internal frame directly in the browser. Shouldn't the app redirect to Sandstorm URL in this case? So always require the frame to be around? Is this problem of Rocket.Chat?"},"comment":{"url":"https://api.github.com/repos/sandstorm-io/sandstorm/issues/comments/213486871","html_url":"https://github.com/sandstorm-io/sandstorm/issues/1848#issuecomment-213486871","issue_url":"https://api.github.com/repos/sandstorm-io/sandstorm/issues/1848","id":213486871,"user":{"login":"paulproteus","id":25457,"avatar_url":"https://avatars.githubusercontent.com/u/25457?v=3","gravatar_id":"","url":"https://api.github.com/users/paulproteus","html_url":"https://github.com/paulproteus","followers_url":"https://api.github.com/users/paulproteus/followers","following_url":"https://api.github.com/users/paulproteus/following{/other_user}","gists_url":"https://api.github.com/users/paulproteus/gists{/gist_id}","starred_url":"https://api.github.com/users/paulproteus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulproteus/subscriptions","organizations_url":"https://api.github.com/users/paulproteus/orgs","repos_url":"https://api.github.com/users/paulproteus/repos","events_url":"https://api.github.com/users/paulproteus/events{/privacy}","received_events_url":"https://api.github.com/users/paulproteus/received_events","type":"User","site_admin":false},"created_at":"2016-04-22T15:53:45Z","updated_at":"2016-04-22T15:53:45Z","body":"Hi Mitar.\n\nI generally like your idea. One other thought is that Sandstorm could\nexpose a URL within the grain like\n\n.well-known/sandstorm/grain-redirect\n\nand then:\n\nif (! window.parent) {\n   winddow.location = \"/.well-known/sandstorm/grain-redirect\";\n}\n you could do a redirect to that, and then Sandstorm would do the redirect\nto the grain URL.\n\nOne difficulty is that I don't know how to handle sharing links in this\ncase, since sharing links are not stored server-side.\n"}}