diff --git a/layouts/partials/topnav/product-selector.html b/layouts/partials/topnav/product-selector.html index c5f4c5c5c..9969f26ce 100644 --- a/layouts/partials/topnav/product-selector.html +++ b/layouts/partials/topnav/product-selector.html @@ -1,7 +1,9 @@ +{{ $scratch := newScratch }} {{ $productPathData := findRE "[^/]+.*?" .RelPermalink }} {{ $product := index $productPathData 0 }} {{ $currentVersion := index $productPathData 1 }} {{ $isCloud := eq "influxdb/cloud" (print $product "/" $currentVersion )}} +{{ $isOSSv2 := in (print $product "/" $currentVersion ) "influxdb/v2."}}