@Edent oh so you’ve got the URL but nothing else to work with inside your template context? It’s been a looong time since I messed with my templates but afaik you get querystring parameters and the implicit scope that a given template is usually mapped to a given section?
What even is a sub template? 🤣 my theme is 17 years old at this point.