mrdoob/glsl-sandbox

Link to shaders as glslsandbox.com/e?id instead of glsandbox.com/e#id

nvvn opened this issue · 1 comments

nvvn commented

Could you please add possibility to link shaders as glslsandbox.com/e?12345 instead of glsandbox.com/e#12345 and change the default linking policy to this one?

It would be useful because on reddit links like glslsandbox.com/e#001 glslsandbox.com/e#002 are recognized as one link, so it's impossible to post two links to different shaders in same subreddit.

So it turns out, an old redirect is still in place, that allows you to accomplish this today. Just take any link, remove e# and replace . with /. So this link:

http://glslsandbox.com/e#21541.3

becomes this:

http://glslsandbox.com/21541/3

The old-style link can then be posted to reddit as a separate page, and will redirect to the more modern form of the same link.