Updating the server configuration file to use the custom SEOURLMapper class

The server configuration file must be updated to carry out an additional logic check for full URL redirects on the storefront.

Procedure

  1. Open the configuration file.
  2. Find the node named SEOConfiguration. Add the following code as a child node under the SEOConfiguration node:
    <mapper-class-name value="com.mycompany.commerce.seo.url.helpers.ExtendedSEOURLMapperImpl"/>
    Where mycompany is your company prefix. For instance:
    <SEOConfiguration defaultUrl="" dynamicUrl="true" enable="true">    
      <mapper-class-name value="com.mycompany.commerce.seo.url.helpers.ExtendedSEOURLMapperImpl"/>
    </SEOConfiguration>
  3. Save and close the file.

Results

You modified the web application to perform an extra logic to check for full URL redirects on the storefront.