[user:name] is deprecated and an alias for [user:account-name], which is the possibly internal username that might be the e-mail or something else.

See #2746065: Profile page's title/heading does not fulfill hook_user_format_name_alter for the related core issue to do the same by default in core.

Comments

Berdir created an issue. See original summary.

damienmckenna’s picture

Status: Active » Needs review
StatusFileSize
new433 bytes

WIP, could probably use an update script to fix existing data.

damienmckenna’s picture

Thanks, BTW :)

berdir’s picture

account-name is still the same internal username, my point is that it should use display-name, which is the "formatted" display name of the user. Otherwise modules like realname will not work correctly.

Not sure about update function. Maybe if you check if the old value was using the :name token like the default but not sure if it's really worth it. Existing sites can always update it manually.

damienmckenna’s picture

StatusFileSize
new441 bytes
new433 bytes

Sorry for using the wrong token, this should suffice.

  • DamienMcKenna committed 595b400 on 8.x-1.x authored by Berdir
    Issue #2968902 by DamienMcKenna, Berdir: Default user page title token...
damienmckenna’s picture

Status: Needs review » Fixed
Parent issue: » #2957104: Plan for Metatag 8.x-1.6

Committed. Thanks.

Status: Fixed » Closed (fixed)

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