We have a lot of XDPs in AEM 6.5 OSGI which are to be rendered as HTML5
All forms submit to the same jsp which generates a PDF and streams it back.
Since we want to centrally control the submitURL for all forms, and not define it for each individually, we created a submitURL property on our custom render profile node, and then we altered the config.jsp of our custom render profile to read this submitURL property. All works fine.
However it still requires the URL to be an absolute path with hostname and port etc..such as
http://[aemserver]:[port]/content/SubmissionHandler/GeneratePDF.html
this would pose a problem, if we were to expose the forms to public, since our AEM server will not be directly available from outside the firewall.
We need some way to define this as a relative path, so that instead of looking for AEM Publish directly, it goes back through : Firewall >> Dispatcher >> Publish