We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0446f86 commit e204ef3Copy full SHA for e204ef3
1 file changed
src/UriTag.php
@@ -26,7 +26,9 @@ public function __invoke(AbstractUri $uri): string
26
$query = $uri->query;
27
ksort($query);
28
29
- return str_replace('/', '_', sprintf('%s_%s', $uri->path, http_build_query($query)));
+ // Ensure all forward slashes are replaced, including the leading slash
30
+ $path = str_replace('/', '_', $uri->path);
31
+ return sprintf('%s_%s', $path, http_build_query($query));
32
}
33
34
/**
0 commit comments