I have a View showing Taxonomy Terms as JSON, and want to expose the URL aliases of those terms:
{
"terms" : [
{
"term" : {
"name" : "Media centre",
"term_id" : "4547",
}
},
...
Some of the terms have URL aliases manually set, while others are automatically generated.
How can I expose the URL alias of each term as a field?
{
"terms" : [
{
"term" : {
"name" : "Media centre",
"term_id" : "4547",
"term_url_alias" : "/about/news/media-centre" <<<<<
}
},
...
No field relating to Path
, URL
or Alias
appears under fields or relationships. My issue sounds similar to How to use url alias in views for taxonomy terms? but the answer didn't fix my problem.