diff --git a/helpers.go b/helpers.go index 77907e6a..ee973f36 100644 --- a/helpers.go +++ b/helpers.go @@ -208,7 +208,7 @@ func setETag(c *Ctx, weak bool) { } func getGroupPath(prefix, path string) string { - if path == "/" { + if len(path) == 0 || path == "/" { return prefix }