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"
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 :-
This would generate Example as below
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
From Author
Was this post resolve the SEO issue?Provide your comments
No comments
Post a Comment
Note: Only a member of this blog may post a comment.