Resolve template using config. Only load template when permissionGranted is in query string.