The existing Views argument validator "Me" provided by "me aliases" module only accepts "me", or the uid of the current user.
Other validators accept arbitrary uids or usernames, but they do not accept "me".
What is missing is an argument validator that accepts both "me", and other uids or (optionally) usernames.
There are various issues that are (I think) symptoms of this problem:
#784204: Choosing the "me" validation method makes administration pages not accessible anymore
#405866: Views argument User:ID and me aliases
#1919368: "me" works in the Menu where I have 'user/me' and redirect turned on but it fails if it is 'user/me/orders'
#909566: Views Menu Arguments User ID
The solution can be to introduce a new argument validator, or to add an option to the existing argument validator.
Comment | File | Size | Author |
---|---|---|---|
#3 | me-2679173-3-views-validator.patch | 2.17 KB | donquixote |
#2 | me-2679173-2-views-validator.patch | 2.16 KB | donquixote |
Comments
Comment #2
donquixote CreditAttribution: donquixote as a volunteer commentedWe can reuse the existing class for the new argument handler plugin.
Comment #3
donquixote CreditAttribution: donquixote as a volunteer commentedNeed to be compatible with parent::init() signature.