{% spaceless %}

{% for segment, subpath in object.get_path_segments_with_subpath %} {% if not forloop.last %} {{ segment }} / {% else %} {{ segment }} {% endif %} {% endfor %}

{% endspaceless %}