Sign in to Community
Sign in to view all badges
I need to differentiate between below URLs in Sightly html.
How can I achieve the same? I tried using wcmmode.edit but it evaluates to true in both cases.
Your current WCM Mode doesn't depend on the presence of "/editor.html". It depends on "wcmmode=disabled" parameter.For example, even http://localhost:4502/editor.html/content/abc/xyz/test.html?wcmmode=disabled will evaluate "wcmmode.edit" to false.
currentPage.path will not contain "/editor.html". I checked HTL global object, Java object will most likely return the same.
window.location.href.indexOf("/editor.html") > -1