- if (session.nodeExists(pathInfo)) {
- session.exportDocumentView(pathInfo + "/h:html", resp.getOutputStream(), true, false);
+ if (!oldApproach) {
+ String path = URLDecoder.decode(pathInfo, StandardCharsets.UTF_8);
+ session.exportDocumentView(path + "/" + OdkNames.H_HTML, resp.getOutputStream(), true, false);