Get leaf bundle name as URL in archetypes

I have url: /{{ .File.BaseFileName }}/ in the default archetype file and this worked flawlessy to get the filename as the URL. But after converting to page bundles, it returns index. However, I want the leaf bundle name to be the URL instead. How can I achieve this?

Quick Google Search returned .File.ContentBaseName.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.