Include selected layer in short links

Fixes #703