The Link to Taxonomy term field outputs a link to the term. However, you cannot configure it to output the url as a string - only as an <a> tag. This prevents you from doing other manipulations on the string in the views UI.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | Screen Shot 2016-12-21 at 1.25.01 PM.png | 39.39 KB | mortona2k |
Comments
Comment #2
mortona2k commentedComment #3
mortona2k commentedTo elaborate further - you can't use replacement patterns in the text to display config. Adding that here would be a great improvement.
Another way I might want to use this field is to get the raw url so I can use it elsewhere. For example, I want to add an anchor link to the url that comes from another field on the node. If I could get the url as a string, it would be easy to modify the output and add the anchor.
Comment #4
lendudeI think #2810097: Allow views to provide the canonical entity URL of all entities, not just nodes. covers what you are looking for?
Comment #5
jwilson3This page comes up first when searching using keywords "drupal 7 views taxonomy term link".
Once I started searching with the word "path" instead of "link" I found this module.
https://www.drupal.org/project/views_term_path
Leaving this here for anyone else coming here from Google, searching for a Drupal 7 solution. HTH.