Hmmm. Strange. If i disable sef, then link: (index.php?option=com_comprofiler&task=userProfile&user=42&Itemid=524)
works good. But in my gallery I use (if sef disable): (index.php?option=com_comprofiler&task=userProfile&user=
john_dow) or any else (index.php?option=com_comprofiler&task=userProfile&user=
johndow) and they not work. But, this is likely my fault and I set incorrect link to rewrite.
But on site i use sef, and hoped the link will be (/component/comprofiler/userprofile/Jhon_Dow.html) (or (menuname)/userprofile/Jhon_Dow.html)