AEM Classic Connector

AEM Classic Connector Configure Rewrites

On translated sites, it is often necessary to rewrite URLs so they point to target pages in the appropriate language. The Adobe Experience Manager (AEM) Classic Connector allows you to configure rewrites in three ways:

URL Rewrites

By default, Smartling will rewrite URLs on translated pages to point to your translated site. For example, this link from your English site:

Markdown

<a href="/content/sitename/us/EN/ordinaryPage.html">Page Title</a>

might be rewritten on your French site as:

Markdown

<a href="/content/sitename/us/FR/ordinaryPage.html">Titre de la page</a>

However, you may not want to rewrite every link. To control URL rewriting, go to Web Console > Configuration (http://yourdomain.com/system/console/configMgr) and open com.smartling.content.impl.processors.UrlDataRewriter. You can disable URL rewrites completely by unchecking enabled.

url_rewriter.pngExcluding links from rewriting can be done in two ways: You can exclude specific page fields from being rewritten, or you can specify paths that should never be rewritten.

Excluding Page Fields

If a property of one of your pages is a link that you don’t want rewritten, just add the field name to the Excluded fields list.

excluded_fields.png

Excluding Paths

You may have an URL path that you don’t intend to translate, so you don’t want to rewrite any links pointing to that path. For example, you may not want to translate the ‘About’ section of your site: /content/sitename/about. To exclude all URLs under this path from being rewritten, add it to the Excluded content path list.

excluded_content_path.pngIf there is a URL or group of URLs under an excluded path that you do want rewrite, you can include them by adding them to the Include content path list:

include_content_path.png

Language Rewrites

If a page has a Language property, this will be rewritten by default on translated pages to match the translated language. To disable rewriting the Language property, go to Web Console > Configuration (http://yourdomain.com/system/console/configMgr), open Smartling - Language Property Rewriter and uncheck Enabled.

Path Rewrites

Pages & components often have properties containing references to other pages (i.e. paths like /content/sitename/EN/some/page). In most cases, such properties have to be amended on translated pages(e.g. changed to /content/sitename/FR/some/page). By default this feature is disabled. To enable this feature, go to Web Console > Configuration (http://yourdomain.com/system/console/configMgr) , and open Smartling - Path Properties Rewriter. Add the name of each property that needs to be written. By default path doesn't have extension. But if your component is configured to save path with extension then optionally you can specify list of supported extensions. Only paths with provided extensions will be rewritten.

fields.png

Was this article helpful?