Skip to content

Commit 9df76ff

Browse files
committed
MAGE-1245 Fix raw route eval bug
1 parent 2adb8ce commit 9df76ff

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Plugin/RenderingCacheContextPlugin.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ protected function getOriginalRoute(int $storeId): string
8080
* @return bool
8181
*/
8282
protected function isCategoryRoute(string $path): bool {
83+
$path = ltrim($path, '/');
8384
return str_starts_with($path, self::CATEGORY_ROUTE);
8485
}
8586

0 commit comments

Comments
 (0)