Edit profile fields from an Account page not working

Edit link is not working with [ms-membership-account] shortcode if placed on any other page.