Problem:
When the username on the Web site is forced to match the avatar's name (gathered during verification), the PathAuto alias is not changed if the username is changed.

Example:
If a user creates an account with the name "JohnSmith", PathAuto will create a path of /user/johnsmith.
When the avatar registers in-world at a terminal, the username on the Web site will be automatically changed to "John Smith" to match the avatar's name. The PathAuto alias, however, will still be /user/johnsmith until the user edits and saves their account (only then will it be changed to /user/john-smith, the correct path). This may not happen for a long time, however, causing the user to give out the wrong URL for their account page, which will change later if they ever edit and save their account.

  1. Can the PathAuto alias be updated to the correct alias when a name change is forced by SlUser?
  2. ^ If not, can the account for the user be edited and saved when the name change is forced by SlUser (this would force PathAuto to regenerate the correct alias)?

Comments

ssm2017 Binder’s picture

Status: Active » Fixed

added in the new rc5 release
thank you for reporting

dmetzcher’s picture

Thank you!

I tested it on my test site and it looks good. I'm going to install it on the live site now.

It looks like the lines below in sluser.inworld.inc are controlling this, correct? I was just poking around the code and trying to understand how you did it.

  // refresh pathauto
  if (module_exists('pathauto') && $replace_name) {
    pathauto_user_update_alias($account, 'update');
  }

Thanks again!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.