Encoded URL on generation of AEM site output in Adobe Experience Manager Guides

Disclaimer:

Adobe Experience Manager Guides was formerly branded as XML Documentation for Adobe Experience Manager. Please note certain references within the documentation may still refer to prior branding but are still applicable to the current offering.

 Troubleshoot the issue of encoded URLs while generating AEM Site output.

Issue

While generating AEM site output, URL gets encoded leading to unexpected results.  

Cause

Earlier, while creating DITA topics in XML documentation solution, users were allowed to use descriptive file names containing special characters such as @, $, >, and so on. This led to URLs getting encoded while generating to AEM site output. 

Solution

How is this issue now handled? 

To avoid this conversion in URL, the 3.8 release of  XML documentation solution allows you to define a list of special characters other than the default valid filename configurations (a-z  A-Z  0-9 - _). 

This implies that, although you can configure a list of special characters in a file name including a space, it will get replaced with a hyphen (-). 

For example, files named Introduction 1 and  Introduction@1 will generate the corresponding file as Introduction-1 in both the cases.  

Resolution

Upgrade your build to the 3.8 release of  XML documentation solution.

It is strongly recommended to configure valid special characters immediately after the upgrade.

How to configure valid special characters in file names? 

  1. Open the configuration page for Adobe Experience Manager Web Console. The default URL to access this page is:
    http://<server name>:<port>/system/console/configMgr
  2. Search for com.adobe.fmdita.common.SanitizeNodeNameImpl and click on the bundle. 

  3. In the Disallowed Character Set for Publishing to AEM Sites field, ensure that the property is set to  ‘<>`@$. You can add more special characters to this list, however, it must have these required special characters.  

  4. Click Save.

  5. Search for com.adobe.fmdita.config.ConfigManager and click on the bundle. 

  6. In the Regex for Valid Characters field, ensure that the property is set to [-a-z A-Z 0-9_]. You can add more characters to this list. However, it must have these basic characters and the list must start with a hyphen (-). 

  7. Click Save to retain the changes made.  

 Adobe

Get help faster and easier

New user?

Adobe MAX 2024

Adobe MAX
The Creativity Conference

Oct 14–16 Miami Beach and online

Adobe MAX

The Creativity Conference

Oct 14–16 Miami Beach and online

Adobe MAX 2024

Adobe MAX
The Creativity Conference

Oct 14–16 Miami Beach and online

Adobe MAX

The Creativity Conference

Oct 14–16 Miami Beach and online