We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
str_replace
SurrogateKeys
1 parent e204ef3 commit fbecc37Copy full SHA for fbecc37
1 file changed
src/SurrogateKeys.php
@@ -26,7 +26,8 @@ final class SurrogateKeys
26
27
public function __construct(AbstractUri $uri)
28
{
29
- $uriKey = sprintf('%s_%s', str_replace(DIRECTORY_SEPARATOR, '_', $uri->path), http_build_query($uri->query));
+ $path = str_replace('/', '_', $uri->path);
30
+ $uriKey = sprintf('%s_%s', $path, http_build_query($uri->query));
31
$this->surrogateKeys = [$uriKey];
32
$this->uriTag = new UriTag();
33
}
0 commit comments