Title field and special characters | Community
Skip to main content
Level 2
September 22, 2023
Solved

Title field and special characters

  • September 22, 2023
  • 3 replies
  • 1201 views

Hello,

 

I am curious if there is a way to adjust the logic for the page title field in AEM to strip out special characters instead of replacing the character with a hypen.

 

Example:

Title: I am a title, with a comma

AEM Name/URL: i-am-a-title--with-a-comma

Expectation: i-am-a-title-with-a-comma

 

I feel like this is something that should just work OOTB.

 

- E

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 adivj95

@edardna 
This JSP is executed during page creation through the Sites Console, at the location: /libs/cq/gui/components/siteadmin/admin/createpagewizard/page/POST.jsp.
You may consider overlaying this file and incorporating your custom logic

3 replies

adivj95
adivj95Accepted solution
Level 2
September 23, 2023

@edardna 
This JSP is executed during page creation through the Sites Console, at the location: /libs/cq/gui/components/siteadmin/admin/createpagewizard/page/POST.jsp.
You may consider overlaying this file and incorporating your custom logic

A_H_M_Imrul
Community Advisor
Community Advisor
September 23, 2023
kautuk_sahni
Community Manager
Community Manager
September 25, 2023

@edardna Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.

Kautuk Sahni