"Edit" button automatically redirect you to first menu item of type Users->Edit Profile or Users->Profile.
I create e menu for edit profile with itemid=204
Which type of menu item is it?
So sorry for my late late reply.
I made some tests..
If the profile menu use Joomla profile the edit button use the item ID for that menu, but if the profile menu use JSN profile than use the item ID from Home menu.
But when SEF is on there is a problem to use Joomla's profile.
if I use Joomla profile for profile menu (index.php?option=com_users&view=profile) and select this menu I see in url site/component/jsn/ because redirect to JSN profile. and not at site\profile.html as is the menu's alias.
if I create hidden menu for Joomla profile must have different alias and not profile, so the edit will be something like site/profile2.html?layout=edit
I try also create hidden menu for Joomla's edit profile menu but the SEF I get is site/edit-profile/profile.html?layout=edit
There is any way to have site/profile.html for profile page and site/profile.html?layout=edit for edit profile or even better site/edit-profile.html ?
Regards.