incorrect url of root webapp in menu
------------------------------------
Key: OFBIZ-4368
URL: https://issues.apache.org/jira/browse/OFBIZ-4368
Project: OFBiz
Issue Type: Bug
Components: themes
Affects Versions: SVN trunk
Reporter: Leon
Priority: Minor
Fix For: Release Branch 11.04, SVN trunk
If I enable the "app-bar-display" for root webapp which is mounted to "/", the
url of root webapp in menu is "https://control/main" and not the correct
"https://localhost:8443/".
That's because, e.g. in themes/tomahawk/includes/appbarOpen.ftl, it uses
sentence <#if thisApp != "/"> to judge whether the app is root or not, while
the variable thisApp is java String and it'll be encoded as iso code "/",
so the "if" sentence mentioned above will always return false.
In the patch it use StringUtil.wrapString to wrap variable theApp to avoid
encode.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira