So, one thing I find confusing with Pathauto 2.x is the statements about the -raw tokens.

Upon upgrade I had a number of issues to resolve according to the provided help text. For example, I was warned to change [user] to [user-raw] and [catpath] to [catpath-raw].

However, in other areas of the UI there is the text "WARNING: Raw User Input" attached to any of these tokens.

The question is which is it? and the action is to get the UI / documentation internally consistent.

CommentFileSizeAuthor
#1 token_help.png45.51 KBgreggles

Comments

greggles’s picture

StatusFileSize
new45.51 KB

Well, if you search the queue you'll see tons of issues about this. I agree, it's a problem. But, Pathauto now uses the token module so I can't just go and change everything. The token module has demands on it from other modules which require it to work under a variety of situations. In some of those situations, it is inappropriate to use the -raw tokens. In Pathauto, people should use the -raw tokens.

Right now, there is no way to filter the tokens that Pathauto shows nor change the help text etc. So, we are stuck with this situation. In Token2.0 that problem will be solved.

So now we've got the pattern changes documentation which is the best solution I can think of. I also added this help text to Pathauto 5.x-2.x development branch which will eventually become 5.x-2.1

Use -raw replacements for text to avoid problems with HTML entities.

I'm leaving this open to further input because I agree it is confusing, but you should understand that background and the current state of development first.

ryanthered’s picture

Thanks for the update. I think this response and the documentation that's out there now (I didn't see it when I looked prior to putting in the issue) is good enough for now. Thanks for helping me understand. I'd suggest we close or postpone this issue.

greggles’s picture

Status: Active » Postponed
dave reid’s picture

Status: Postponed » Closed (duplicate)

Marking this as a duplicate of #285136: Provide better guidance to users about using -raw tokens since there has been more discussion there.