How to use special characters in page name in aem? As it only allows
Views
Replies
Total Likes
Hi @prachimathur
Could you please share more details? Like a business case where you need node/page name with special character.
If you create page with special character it may be encoded and node is created with URI encoded value, because sling assume node name will be used for url.
There are only certain characters that are allowed in the URL string regardless node name, alphabetic characters, numerals, and a few characters that can have special meanings.
; , / ? : @ & = + $ - _ . ! ~ * ' ( ) #
Hi,
Actually I want to add some text in other languages in page name for example-
når-tik-tok-blir-din-nye-utviklingsavdeling but when I add this norway language text the page name field give error. So I just want to know that do we need to add any new configurations to add other languages text?
you can use Page tItle to add når-tik-tok-blir-din-nye-utviklingsavdeling
but use nar-tik-tok-blir-din-nye-utviklingsavdeling in name field, name filed is technical and use as node name to create page and will be used as url.
You should use the "Title" (jcr:title) field for such names, the node name is more like a technical identifier.
Hello @prachimathur
Please avoid special characters in the node/page/asset name.
These have been disabled OOTB, because they can cause issues with multiple APIs.
URL Compatibility: Node names are often used in URLs, and some characters, like spaces or special characters, can cause issues in URLs. To ensure that URLs are properly formatted and accessible, certain characters are disallowed in node names.
Compatibility with JCR: AEM is built on top of the JCR standard, which has rules and restrictions regarding valid node names. JCR enforces rules such as disallowing character in node names to ensure compatibility and portability of content between different JCR-compliant systems.
Be cautious while enabling any if needed, you would need to verify multiple AEM functionalities.
Hi,
Actually I want to add some text in other languages in page name field for example-
når-tik-tok-blir-din-nye-utviklingsavdeling but when I add this norway language text in the page name field it gives error. So I just want to know that do we need to add any new configurations to add other languages text?
I would also recommend the same as @arunpatidar @EstebanBustamante @aanchal-sikka suggested, use the page name with English characters such as nar-tik-tok-blir-din-nye-utviklingsavdeling.
However, there's another option in the Page Properties, found in the Advanced Tab, called "Alias". You can update the Alias to når-tik-tok-blir-din-nye-utviklingsavdeling (in the Norwegian language). This will enable you to access the page using the URL structure /language-masters/.../når-tik-tok-blir-din-nye-utviklingsavdeling.html
Hi,
I tried to add "når-tik-tok-blir-din-nye-utviklingsavdeling" in the Alias field also but still it is not shown in the url.
@prachimathur 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.
Views
Replies
Total Likes
Hi,
I'm exploring till now, if I got the correct solution I'll share.
Views
Replies
Total Likes
Hello Everyone,
Actually I got my answer and want to share it with you all. By default AEM does not allow special characters in the page name field. But due to a bug customer were able to enter special character in the page when they copy and paste the page. which is been fixed as a part of SITES-7064 in August release.
Thankyou all!
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies