Expand my Community achievements bar.

Clarification required for updating internalsubmit.jsp url generated by GuideBridge API during submission process

Avatar

Level 3
Hi, I need help to understand if https://hostname/content/forms/af/path...../.../jcr:content/guideContainer.af.internalsubmit.jsp which is generated on using GuideBridge API on submission of Adaptive form, can be modified to https://host.....name../abc/xyz/content/forms/af/path../..../jcr:content/guideContainer.af.internals.... As we are trying to access AEM application over SI proxy, the form is available on SI proxy : https://hostname.../abc/xyz/content/forms/af/path../...html, as a result all the url needs to be accessed over /abc/xyz, but the issue that , as this internalsubmit.jsp is generated internally, I am unable to append /abc/xyz to the url. Any support is appreciated.
Topics

Topics help categorize Community content and increase your ability to discover relevant content.

2 Replies

Avatar

Employee

Hello @SmrithiG1 

 

The recommended approach is to configure your proxy (Apache, NGINX, etc.) to rewrite and/or strip/add the context path as needed.

With Apache, you often use ProxyPass and ProxyPassReverse rules:

ProxyPass /abc/xyz/content https://aemhost/content
ProxyPassReverse /abc/xyz/content https://aemhost/content

These rules handle incoming requests and send them to AEM, while responses and location headers coming back to the client are also rewritten to include the /abc/xyz prefix.

 

Reference: https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/forms/integrate/...

 

Thanks,

Rahul Pandey

Avatar

Level 3

HI @Rahul_P , We are using IIS server, hence I tried writing rewrite rules using URL rewrite module. For some unknown reason, it is not being applied on form submission. 

I have the following code in clientlib, and the clientlib is invoked from adaptive form.

 

function functioname()
{
window.guideBridge.getdata(
{
success: function(result) {

},
error:function(guideResultObject) {.... },
guideState : null,
boundData : true});

}

As soon as window.guideBridge.getData is called, the url rewrite is not getting applied.