Smart edit unable edit the page emailsignmodal

眉间皱痕 提交于 2020-05-16 02:30:11

问题


Hi Hybris 1811 smartedit I am trying to edit Email Signup Modal but as soon as I click on the link it redirects me to below page. I have multiple sites so sometimes I am getting this warning: WARN [hybrisHTTP20] [DefaultCMSSiteService] More than one site associated with URL [https://localhost:9002/?site=XXXX]. Returning first. Did anybody faced similar issue?


回答1:


The main problem is that you have more than one site containing the same urlPatterns

This attribute represents a regex that is used by CMSSiteFilter to decide the website that will be used based on the URL introduced in the browser or requested by smartEdit(i.e https://localhost:9002/?site=XXXX)

In this case, more than one instances of CMSSiteModel were found and the first one was used.

In order to fix this you need to adjust each site to have its own, unique urlPattern . If you have apparel and electronics sites, the regexes for both should look like this

apparel --> (?i)^https?://[^/]+(/[^?]*)?\?(.*\&)?(site=apparel)(|\&.*)$
electronics --> (?i)^https?://[^/]+(/[^?]*)?\?(.*\&)?(site=electronics)(|\&.*)$

This can be changed in backoffice for each and every site:

Make sure that the preview URL is also changed accordingly so that SmartEdit will know how to perform the HTTP requests for this site:



来源:https://stackoverflow.com/questions/61594440/smart-edit-unable-edit-the-page-emailsignmodal

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!