I have a matrix block that calls a category channel. The categories are nested three levels "deep" at times. I want to select first, second or third level links as needed.
When I use .last(), I can get the full url path to return. When I use .nth(n), I have to specify a value, which automatically limits the link path to that level of "deepness".
What can I do to get the .last() functionality, without using .last()?
Note: .last() will be deprecated going forward in Craft 3 and beyond.