Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I believe this code in basic.theme is incorrect...
$alias = str_replace('/', '-', $alias);
if (!empty($alias)) {
$variables['attributes']['class'][] = 'page-' . $alias;
list($section,) = explode('/', $alias, 2);
if (!empty($section)) {
$variables['attributes']['class'][] = 'section-' . $section;
}
}
$alias as been updated $alias = str_replace('/', '-', $alias);
to have slashes replaced by dashes, 'before' the check for sections list($section,) = explode('/', $alias, 2);
Comment | File | Size | Author |
---|---|---|---|
#2 | basic.theme_.patch | 731 bytes | anthony.bouch |
Comments
Comment #2
anthony.bouch CreditAttribution: anthony.bouch as a volunteer commentedPatch attached.
Comment #3
mark.labrecqueComment #4
CatherineOmega CreditAttribution: CatherineOmega as a volunteer commentedYup, this fix is working well for me.
Comment #6
leahtard CreditAttribution: leahtard at The Jibe commentedThanks for the patch. This has now been committed.
Cheers, Leah