Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add current opened panes to the bin's URL #1683

Closed
kizu opened this issue Jul 18, 2014 · 2 comments
Closed

Add current opened panes to the bin's URL #1683

kizu opened this issue Jul 18, 2014 · 2 comments

Comments

@kizu
Copy link

kizu commented Jul 18, 2014

It could be optional or by default, but I would really want to have this there.

I used to share links to bins using just its url, and not the “share” menu, but this way the bin would have the default panes open and not the ones I saw when I copied the url.

If the pane wouldn't store that info in itself, then it would be nice to update the URL in the browser with the proper one, that would correspond to the one you see at the moment.

Example: I have three panes open: HTML, Stylus and Output. But the url of the bin is just http://jsbin.com/…/1/edit, so if I copy it and send someone, they wouldn't see the same panes as I am. What I would want: update the URL with those panes, so it would be http://jsbin.com/…/1/edit?html,css,output there. I guess it is possible using History API?

@remy
Copy link
Member

remy commented Jul 18, 2014

Makes sense. We encourage users to share the bin url with specific panels, so it makes sense to make it easier to copy and paste from the url.

History API is the right way to go about it - though it should be replaceState rather than pushState.

@stale
Copy link

stale bot commented Jan 20, 2018

This issue has been automatically marked as stale because it has not had recent activity. More importantly, jsbin has been undergoing a massive refactor by Remy, and a large number of issues have been resolved, but with the growing 600+ open issues, the Stalebot (me), has been brought in to try to manage the issues.
Keep an eye on jsbin.com blog posts and the @js_bin twitter account for updates on the new version of jsbin ❤️
It will be closed next week if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jan 20, 2018
@stale stale bot closed this as completed Jan 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants