I have configured the mentions module to use the @mention format; so, input prefix "@", and input suffix "" (empty string). In this scenario, writing a single @ character will cause it to be converted to an @Anonymous mention, linking to path "/user/not yet assigned".

Workaround: If you want to write a single @ character before this is fixed, use the HTML entity @

Comments

thoughtcat’s picture

I have the same setup (I would imagine most users would expect just to be able to start the mention with the @ and not have to use square brackets, as this is the usual functionality on sites like Twitter and Facebook). I suspect the "Anonymous" issue is not actually a bug as such but ideally you'd want an @ sign placed on its own and an @ sign prepended to a non-existent username not to generate any link or show anything at all.

deciphered’s picture

Yes, this is clearly an issue, using the default format ([@mention]) will turn [@] into @Anonymous. I can't think of a valid usecase to ever mention Anonymous, so this will be fixed shortly.

deciphered’s picture

Status: Active » Fixed

Fixed and committed, thanks for reporting this issue.

  • Deciphered committed 3f2e41b on 7.x-1.x
    #2228035: Update filter to prevent anonymous mentions.
    

Status: Fixed » Closed (fixed)

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