如何从Hybris的URL中删除基本站点ID /上下文根

时间:2018-12-18 14:58:00

标签: hybris contextpath

我们有一个需要满足以下条件的要求: 我们应该重定向到https://localhost:9002/basesiteid/。 但是我们有一个要求,其中URL应该解析为https://localhost:9002/。 网址ID不应附加在网址中。

我们进行了以下更改。

hac.webroot=/hac
storefront.webroot=
storefrontContextRoot=

我们还在WCMS->网站的URL编码属性中进行了以下更改。 URL编码属性

发布更改,我们在所有页面上都会遇到以下错误,

javax.servlet.jsp.JspTagException: In URL tags, when the "context" attribute is specified, values of both "context" and "url" must start with "/"

无论如何,我们如何从URL中删除基本站点ID?

1 个答案:

答案 0 :(得分:0)

我遇到了同样的问题,请检查productPrimaryImage.tag "context="${originalContextPath}"删除它或将值设置为"/"应该可以解决您的问题。