Skip to content

Commit 49a5959

Browse files
committed
ProductSelector: Fix nested path resolution
Resolves issues with subpaths for nginxaas
1 parent a3fccd6 commit 49a5959

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

layouts/partials/sidebar-v2.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
{{ range $product := $group.products }}
1818
{{ if not $product.extUrl }}
1919
{{ $escaped := replace $product.url "/" "\\/" }}
20-
{{ $pattern := printf "/%s(/|$)" $escaped }}
20+
{{ $pattern := printf "/%s(|$)" $escaped }}
2121
{{ if strings.FindRE $pattern $relPermalink }}
2222
{{ $currentProductTitle = $product.title }}
2323
{{ end }}

0 commit comments

Comments
 (0)