I am using taxonaomy for some nodes and other nodes are not using any taxonomy. For the default node path pattern I am using [termpath-raw]/[title-raw].html
My problem is since some nodes are not associated with a taxonomy term they then genorate the following url in pathauto:
"[termpath-raw]/page-titleexample.html"
How do I prevent the raw token from being used in the autogenerated path for nodes that do not have taxonomy terms? Is there a work around or am I using the wrong workflow?
Thank you for any help.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 820848-pathauto-termpath-empty.patch | 1.58 KB | dave reid |
Comments
Comment #1
gregglesI think this is a bug. The code that creates that token should default to making the token an empty string so it gets replaced (and removed) in the substitution.
The result would be a URL instead of "[termpath-raw]/page-titleexample.html" more like "/page-titleexample.html"
Is that what you desire?
Comment #2
dave reidPatch attached for review against 6.x-2.x
Comment #3
dave reidCommitted to 6.x-1.x and 6.x-2.x. Does not apply to 7.x-1.x.
http://drupal.org/cvs?commit=386298
http://drupal.org/cvs?commit=386312