{{ $pathParts := splitList "/" .OriginalReq.URL.Path }} {{ $repo := index $pathParts 1 }} Nothing to see here; move along.