【问题标题】:How to remove base site id/context root from URL in Hybris如何从 Hybris 中的 URL 中删除基础站点 ID/上下文根
【发布时间】:2019-05-19 00:45:12
【问题描述】:

我们有一个要求,我们需要实现以下目标: 我们应该被重定向到https://localhost:9002/basesiteid/。 但我们有一个要求,其中 URL 应解析为https://localhost:9002/。 不应在 URL 中附加 Basesite id。

我们进行了以下更改。

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

我们还对 WCMS->Website 中的 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 中删除 basesite id ???

【问题讨论】:

  • 您没有提到您在 URL 编码属性中所做的更改。检查this answer

标签: hybris contextpath


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 2011-03-22
    • 1970-01-01
    • 1970-01-01
    • 2012-07-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-03-02
    • 2023-03-11
    相关资源
    最近更新 更多