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);

CommentFileSizeAuthor
#2 basic.theme_.patch731 bytesanthony.bouch
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

blue_waters created an issue. See original summary.

anthony.bouch’s picture

FileSize
731 bytes

Patch attached.

mark.labrecque’s picture

Status: Active » Needs review
CatherineOmega’s picture

Yup, this fix is working well for me.

  • blue_waters authored 2720f9a on 8.x-1.x
    Issue #2690837 by blue_waters, CatherineOmega: Section Names
    
leahtard’s picture

Status: Needs review » Fixed

Thanks for the patch. This has now been committed.

Cheers, Leah

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.