In my multilingual site I need to link to user profiles from within my custom module. I set up a cb profile menu item in a hidden menu of type "Community Builder » userprofile" with the alias "users" and the Itemid=870. Now I take that link and refer to it in my module via
Code:
JRoute::_('index.php?option=com_comprofiler&view=userprofile&Itemid=870&user='.$AuthorID);
SEF urls are set to ON in the Joomla configuration so the link generated looks in general like ".../users/username.html. But sometimes the userId gets inserted and the generated link looks like ".../users/xxx-username.html. What could cause that injection?