mrdoob / glsl-sandbox

Shader editor and gallery.
https://glslsandbox.com/
MIT License
1.55k stars 260 forks source link

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

Open nvvn opened 9 years ago

nvvn commented 9 years ago

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.

emackey commented 9 years ago

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.