get_attachment_link() adds a hashtag to URL

As mentioned in the comments above, the problem is with the _s theme. The specific function causing the problem is _s_enhanced_image_navigation() in inc/extras.php. The problem can be resolved by changing the first if statement in the function to this:

if ( is_admin() || ( ! is_attachment() && ! wp_attachment_is_image( $id ) ) )
    return $url;