智能编辑无法编辑页面emailsignmodal [英] Smart edit unable edit the page emailsignmodal

查看:87
本文介绍了智能编辑无法编辑页面emailsignmodal的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,Hybris 1811 smartedit我正在尝试编辑电子邮件注册模式,但是,一旦我单击链接,它就会将我重定向到以下页面.我有多个站点,所以有时有时会收到此警告:WARN [hybrisHTTP20] [DefaultCMSSiteService]有多个与URL [

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?

推荐答案

主要问题是您有多个站点包含相同的 urlPatterns

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

此属性表示 CMSSiteFilter 使用的正则表达式,用于根据浏览器中引入的或smartEdit请求的URL来确定将要使用的网站(即

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)

在这种情况下,找到了多个 CMSSiteModel 实例,并且使用了第一个实例.

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

要解决此问题,您需要调整每个站点,使其具有自己唯一的 urlPattern .如果您有服装和电子产品网站,则两者的正则表达式都应该像这样

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:

确保还相应地更改了预览URL,以便SmartEdit知道如何执行此网站的HTTP请求:

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

这篇关于智能编辑无法编辑页面emailsignmodal的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆