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:

  1. Make the replacement of dashes with spaces in normalizeText optional via a configuration parameter
  2. Make the replacements in normalizeText (currently "_" or "-" to " ") configurable, or
  3. Stop replacing dashes with spaces in normalizeText

Remaining tasks

User interface changes

API changes

Data model changes

Comments

mikegodin created an issue. See original summary.

Greg Boggs’s picture

I'd say we should stop replacing -... What do you think?

pagaille’s picture

I'm with Greg on this... my vote is to stop replacing '-'.

  • Greg Boggs committed 975c38a on 8.x-1.x
    Issue #3179673 by Greg Boggs: Make dash ("-") replacements in...
Greg Boggs’s picture

Status: Active » Fixed
Greg Boggs’s picture

This 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.

  • Greg Boggs committed ee2c460 on 8.x-1.x
    Revert "Issue #3179673 by Greg Boggs: Make dash ("-") replacements in...
Greg Boggs’s picture

Status: Fixed » Needs work
johnhelmuth’s picture

Greg Boggs’s picture

Status: Needs work » Closed (duplicate)