Fix Name for nested resourced fetched in resources.ByName and similar

Fixes #12214
This commit is contained in:
Bjørn Erik Pedersen
2024-03-13 11:19:06 +01:00
parent dc6a292133
commit 9e9b1f110c
4 changed files with 82 additions and 13 deletions

View File

@@ -134,8 +134,8 @@ func (c *Client) match(name, pattern string, matchFunc func(r resource.Resource)
OpenReadSeekCloser: func() (hugio.ReadSeekCloser, error) {
return meta.Open()
},
NameNormalized: meta.PathInfo.Name(),
NameOriginal: meta.PathInfo.Unnormalized().Name(),
NameNormalized: meta.PathInfo.Path(),
NameOriginal: meta.PathInfo.Unnormalized().Path(),
GroupIdentity: meta.PathInfo,
TargetPath: meta.PathInfo.Unnormalized().Path(),
})