Ah I just realised that other resolvers may redirect to an external source etc. Should that resolver not print that resolved path directly from the twig extension btw? This will result in less 301 redirects.