cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Switching between the sites based on URL

imransheikh
Explorer
0 Likes
395

Hi Experts,

Can anyone help me to find out the flow or any link which explains how to switch between the OTB sites like electronics and apparel happen?

shall I have to make any configuration in spring security file

eg: 1) localhost:9001/yacceleratorstorefront/?site=electronics takes me to electronics site and

2) localhost:9001/yacceleratorstorefront/?site=apparel takes me to apparel site.

and one more question is that how the anonymous user functionality works for this sites.

Thanks in advance.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Likes

Hi Sam,

Take a look in "storefront/web/webroot/WEB-INF/config/spring-filter-config.xml"

Looking specifically at the filterchain to see how the url is intercepted and decoded through the fiilters.

and method public CMSSiteModel initializeSiteFromRequest(final String absoluteURL)

in hybris/bin/ext-accelerator/acceleratorcms/src/de/hybris/platform/acceleratorcms/context/impl/DefaultContextInformationLoader.java