I have an image field in Views, for which I must use "Rewrite output" option. The output of the image field is this:
<a href="/taxonomy/term/[tid]" title="Album "[name]"" class="vignette-wrapper">
[field_image]<span class="vignette"></span></a>
So, it contains a link to taxonomy term. But I would like this link to be the custom url for this taxonomy term, instead of raw Drupal path. My Pathauto pattern for taxonomy term is:
[term:vocabulary]/[term:parents:join-path]/[term:name]
But in Views, the [term:parents:join-path]
token is not visible on the list of Replacement Patterns.
How to achieve this?
/taxonomy/term/[tid]
URL not automatically redirect to your pathauto determined alias? I know that's not ideal compared to serving the pathauto version.hook_views_pre_render()
to strongarm it. Not sure exactly what that would look like, but maybe something along the lines of changing$view->field['FIELDNAME']->options['alter']['path']