Announcement: You can find the guides for Commerce 7.5 and later on the new Elastic Path Documentation site. The Developer Center continues to support Commerce 6.13.0 through 7.4.1.Visit new site

serviceSF.xml

serviceSF.xml

The serviceSF.xml contains definitions for beans that are only used in the storefront web application. It is located in the ep-storefront\src\main\resources\spring\service directory.

SEO Locale Changes

In the serviceSF.xml, the following bean is defined:

<bean id="localeUrlTool" class="com.elasticpath.sfweb.tools.impl.LocaleLinksToolsImpl">
   <property name="seoBuilderVar" ><ref bean="coreSeoUrlBuilder"/></property>
   <property name="localeControllerUrl"><value>locale.ep</value></property>
</bean>

This bean is used to create SEO friendly URLs for pages in different locales. For the non-SEO will use the Locale controller to change the locale.

  • localeControllerUrl - is the key for the LocaleControllerImpl defined in SF/url-mapping.xml:
    <prop key="/locale.ep">localeController</prop>