Replies: 3 comments 3 replies
-
Shared links are immutable (and heavily cached); so yes, you need to make a new short link every time. There's two possibilities:
I know @lefticus does the latter; to have links that on |
Beta Was this translation helpful? Give feedback.
-
If you have short enough blocks of code, you could consider producing Of course they will be long links and not very user friendly. But you can have some JS magic in case of website or in case of github docs you can make a script that can read the code blocks and combine that with a clientstate template and add a link. The base64 in the link is the same data as you would send with |
Beta Was this translation helpful? Give feedback.
-
Thanks everybody for the suggestions. In my case the URLs need to be reasonably short (they have to fit on a slide), and be (or seem) permanent. Also, I want to be able to generate QR codes for them, so the length matters. For the time being, I am using HTML redirection pages, like https://jll63.github.io/yomm2/ce/ast.html, which contains this. They don't have the cachet of explicit godbolt.org though. |
Beta Was this translation helpful? Give feedback.
-
I would like to embed links to CE examples of my YOMM2 library in my GitHub pages, in social media posts, and in presentations. I would also like to be able to modify the examples (say, to correct something or improve a comment), and have the embedded link point to the new version. Unless I misunderstand, short links will not give me this: whenever I click "share" after a change, a new short link is generated.
I guess I could create HTML redirection pages to forward to CE links, and update them as needed. But surely, I am not the first to want to do this. Does anybody have an easier/better solution?
Beta Was this translation helpful? Give feedback.
All reactions