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.
Problem/Motivation
Currently normalizeText replaces dashes ("-") in titles with spaces, which can be undesirable if the title requires a dash character.
Steps to reproduce
Create a page with a dash in the title, being sure to check "Provide a menu link". In the displayed breadcrumb, the dash will be replaced by a space.
Proposed resolution
Either:
- Make the replacement of dashes with spaces in normalizeText optional via a configuration parameter
- Make the replacements in normalizeText (currently "_" or "-" to " ") configurable, or
- Stop replacing dashes with spaces in normalizeText
Comments
Comment #2
Greg BoggsI'd say we should stop replacing -... What do you think?
Comment #3
pagaille CreditAttribution: pagaille commentedI'm with Greg on this... my vote is to stop replacing '-'.
Comment #5
Greg BoggsComment #6
Greg BoggsThis one is going to require more work. When I just remove - from the normalize, breadcrumb titles look like this:
Home > Hip-hop-wellness
So the solution will need to be smarter because we can't just remove - from normalize.
Comment #8
Greg BoggsComment #9
johnhelmuthIs this a duplicate of Issue 3161100?
Comment #10
Greg Boggs