Skip to content

GopherJS Playground sharing uses suboptimal URL. #14

Closed
@dmitshur

Description

@dmitshur

The playground that you see at http://gopherjs.org/play/ is actually inside an iframe pointing to http://gopherjs.org/playground/index.html.

But the code uses the current frame's URL to generate the shared link.

So, sharing kinda works, but the generated link has the form of:

http://gopherjs.org/playground/index.html#/Myqj0bQVev

Which takes you out of the iframe with the nicer URL. And http://gopherjs.org/play/#/Myqj0bQVev does not work because it doesn't read the URL of the parent frame.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions