Hyphens missing in the page name | Community
Skip to main content
Level 3
October 16, 2015
Solved

Hyphens missing in the page name

  • October 16, 2015
  • 3 replies
  • 2030 views

Normally when I author a new page in AEM 6.0, AEM takes the spaces in the page title and replaces them with hyphens in the page name. However, at one of my AEM 6.0 instances, AEM fails to insert hyphens into the page name as expected, so a page titled "my test page" becomes named "mytestpage" instead of "my-test-page". There are no errors or warnings in the error log when this happens. Is there a specific AEM component, configuration, or bundle in the web console that handles this? 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by AndySh4

Here's how I fixed this. There is an ootb component at http://localhost:4502/system/console/configMgr/com.day.cq.wcm.core.impl.PageManagerFactoryImpl which normally swaps illegal characters with hyphens by default. This component is the "Day CQ WCM Page Manager Factory". It has a configuration field labeled "Illegal Char Mapping" that is normally empty since it is hardwired to use a hyphen. I tried unbinding this component several times but that did not fix the problem. My fix was to just type a hyphen in the Illegal Char Mapping field and then click Save.

3 replies

AndySh4AuthorAccepted solution
Level 3
October 16, 2015

Here's how I fixed this. There is an ootb component at http://localhost:4502/system/console/configMgr/com.day.cq.wcm.core.impl.PageManagerFactoryImpl which normally swaps illegal characters with hyphens by default. This component is the "Day CQ WCM Page Manager Factory". It has a configuration field labeled "Illegal Char Mapping" that is normally empty since it is hardwired to use a hyphen. I tried unbinding this component several times but that did not fix the problem. My fix was to just type a hyphen in the Illegal Char Mapping field and then click Save.

Shailesh2015
March 14, 2016

Hello Andy,

I see similar behavior in page name after 16 characters length , where the mechanism of replacing illegal characters by hyphen does not work and t simply concatenate the string from title, did you see this pattern or behavior after you fixed this issue ? 

AndySh4Author
Level 3
March 15, 2016

I didn't see the issue you described after fixing my issue in AEM 6.0. I also haven't seen this issue in AEM 6.1 after several months.