{{ $currentVersion := (index (findRE "[^/]+.*?" .Page.RelPermalink) 0) }}
{{ $cli := replaceRE "/cli/" "" (index (findRE "/cli/[a-z]*" .Page.RelPermalink) 0) }}
{{ $link := print "/" $currentVersion "/reference/cli/" $cli "/#mapped-environment-variables"}}

Maps to <a class="q-link" href="{{ $link }}">?</a>
