diff options
| author | Sam Light <sam@lightscale.co.uk> | 2026-06-10 19:00:33 +0100 |
|---|---|---|
| committer | Sam Light <sam@lightscale.co.uk> | 2026-06-10 19:00:33 +0100 |
| commit | 3ccbdb7afd95972fbfdb797601acaedd467663a4 (patch) | |
| tree | 6e6a8e021f42e82cfb63c64f2c3759d8bcdcbaf3 /src/Group.php | |
| parent | 7d76684ad6cd0182545489d7ed54ae9823d94ffa (diff) | |
testing of the full group routes
Diffstat (limited to 'src/Group.php')
| -rw-r--r-- | src/Group.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Group.php b/src/Group.php index 9f08d25..aba0b82 100644 --- a/src/Group.php +++ b/src/Group.php @@ -58,7 +58,7 @@ class Group $prefixes = $this->getAncestorString(fn ($g) => $g->getPrefix()); $prefixes = array_map(fn (string $p) => trim($p, '/'), $prefixes); - return '/'.implode('/', $prefixes); + return count($prefixes) > 0 ? '/'.implode('/', $prefixes): ''; } public function name(string $value): static |
