Hi all,
I've got a page called 
'Accounts'
 in a multilingual size, and I've made a custom controller. Now, when you go to 
/en-us/accounts/
 it hits the below the custom controller.
but I also want to hit the controller for 
/en-us/accounts/{some name}
with it being multilingual the route isn't always account, as an example in a french translation it would be 
/fr/comptes/
 and  
/fr/comptes/{some name}
 
How do I intercept the call to the child routes, and have I even done this correctly, as just because it works doesn't means it right? π 
here is the custom controller:
csharp
public class AccountsController(
    IUmbracoContextAccessor umbracoContextAccessor,
    ILogger<RenderController> logger,
    ICompositeViewEngine compositeViewEngine) : RenderController(logger, compositeViewEngine, umbracoContextAccessor)
{
    public override IActionResult Index()
    {
        var accountPage = CurrentPage as Accounts;
        if (accountPage == null)
        {
            return NotFound();
        }
        
        //some custom logic to do some stuff here
        
        
        return CurrentTemplate(new ContentModel(accountPage));
    }
}