Modifier: segment


Returns a segment by number from any valid URL or URI.

example: /this/is/pretty/neat
{{ example | segment:4 }}
neat

Additional Reading

Learn how to use and chain modifiers in the Antlers template guide.

Last modified on March 31, 2016