Create a new post
Pick Gallery Post format
Create a gallery
Click publish and show the post
When clicking one of the images, the image will link to the attachment. The next and previous link now will not change, even if you change the order inside the gallery.
Tested on Twenty Thirtheen