Bug: an extra leading slash is added to the category URL keys

The url_rewrite table:

How to fix

Find the line:

Relace it with the new one:

$path = strval($parentPath) === '' ? $path : $parentPath . '/' . $path;

Description:

The following condition is wrong:

$parentPath === ''

because the $parentPath can be null:

1 Like