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

Support updating the link of a short link #27

Open
gillchristian opened this issue May 7, 2020 · 2 comments
Open

Support updating the link of a short link #27

gillchristian opened this issue May 7, 2020 · 2 comments
Assignees

Comments

@gillchristian
Copy link
Owner

When creating playground examples it is easy to forget something and then needing to change the code, which produces a new "hash" and thus a new URL.

This is a pain point when sharing playground links, as any changes made to the code require sharing a new link.

tsplay.dev is all about making sharing playground links easier.

Supporting the update of the link a short link points to would make this experience much better.

There are security concerns tho, as anybody could change the link for somebody else.

This should only by supported when GitHub login is there or by providing some sort of token (on link creation) that would need to be sent back to allow for updating.

@jonidelv jonidelv self-assigned this May 7, 2020
@jonidelv
Copy link
Collaborator

jonidelv commented May 7, 2020

@gillchristian Are you thinking on this as the front-page description, alongside the TS playground image?

@gillchristian
Copy link
Owner Author

Not really, what I meant is. That once you create a short link, if you change a bit the playground code (which now has a new hash, thus is a new url) you need to create a new short link again. Which is a pain because you are going to keep sharing links.

Another use case is, let's say you create the short link to share in some conference presentation, a blog post or a tweet. If you then find a typo in the playground code, and decide to update the code, you need to create a new short link for that updated version of the playground and share the link again.

It would be cool to be able to update the playground link that the short link points to.

Are you thinking on this as the front-page description, alongside the TS playground image?

So, no I wasn't. But actually it could be used. With some tweaks 😏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants