Thanks to Alvaro's explanations, the problem was in MacroFormRenderer where, for lookups, we retrieve _LAST_VIEW_NAME_ as a parameter without encoding it. I have added getEncodedParameter method in UtilHttp and removed now useless (after OFBIZ-11907) getEnvironment from MacroFormRenderer.java Thanks: Alvaro for advice