slug API Parameter

The slug API parameter provides a way to retrieve an app item based on its URL slug. This is an alternate method of getting the item instead of using its id.


{% set post ='post-slug').first() %}

The URL slug is usually the last portion of the URL after the last /.

For example, for the following URL, the slug is: