Thursday, March 24, 2016

Endeca SEO : Display special characters in Assembler SEO URL

In Endeca SEO Implementation, endeca-seo-config-url.xml is responsible to generate SEO URL.  Behaviour:- When using the endeca-seo-conf... thumbnail 1 summary
In Endeca SEO Implementation, endeca-seo-config-url.xml is responsible to generate SEO URL. 

Behaviour:-

When using the endeca-seo-config-url.xml file to implement SEO in Assembler, the NavStateFormatter doesn't handle special characters correctly and replaces with "-" dashes.

Example :- Category Name : Bed + Bath, as creating SEO URL, "+" gets replaced with "-" so generated URL would be like "/Bed---bath/_/N-n1xqt8" but it should be "/Bed-and-bath/_/N-n1xqt8"

  • navigationState: "/Bed---bath/_/N-n1xqt8",
  • siteRootPath: "/pages",
  • label: "Bed + Bath"


Solution :- 

The RegexStringFormatter defined in endeca-seo-config-url.xml is not configured to handle special character by default so it replaced special character with a "-" character.

Add the RegexStringFormatter under stringFormatters as per below :-


<bean class="com.endeca.soleng.urlformatter.seo.RegexStringFormatter">
<property name="pattern">
<value><![CDATA[[+]]]></value>
</property>
<property name="replacement">
<value>and</value>
</property>
<property name="replaceAll">
<value>true</value>
</property>
</bean>


This would generate Example as below


  • navigationState: "/Bed-and-bath/_/N-n1xqt8",
  • siteRootPath: "/pages",
  • label: "Bed + Bath"

Click here to view How to Enable URL canonicalization


From Author
Was this post resolve the SEO issue?Provide your comments 

No comments

Post a Comment

Text Widget