Fix resources.GetMatch, resources.Match, and resources.ByType to they don't normalize permalinks

Fixes #12182
This commit is contained in:
Bjørn Erik Pedersen
2024-03-01 11:47:16 +01:00
parent 9dfa9e70e6
commit 7023cf0f07
2 changed files with 28 additions and 1 deletions

View File

@@ -134,7 +134,7 @@ func (c *Client) match(name, pattern string, matchFunc func(r resource.Resource)
return meta.Open()
},
GroupIdentity: meta.PathInfo,
TargetPath: meta.PathInfo.PathNoLang(),
TargetPath: meta.PathInfo.Unnormalized().Path(),
})
if err != nil {
return true, err