AEM Adaptive form rendering issue using publish URL with /jcr:content? at the end adative form | Community
Skip to main content
Level 5
September 20, 2023
Solved

AEM Adaptive form rendering issue using publish URL with /jcr:content? at the end adative form

  • September 20, 2023
  • 2 replies
  • 584 views

Hi Team

 

we are able to access the adativeform using below URL but publish url not able to access unless we added end "/jcr:content?" (http://localhost:4503/content/dam/formsanddocuments/myforms/us-en/users-from/jcr:content?) is this expected how to access using html or direct path without added " /jcr:content?"

 

Here is author URL:
http://localhost:4502/aem/formdetails.html/content/dam/formsanddocuments/myforms/us-en/users-from

 

Here is Publish URL

http://localhost:4503/content/dam/formsanddocuments/myforms/us-en/users-from/jcr:content?

 

without adding "jcr:content?"  not able access , Is this expected behavior for AEM Adaptive Forms?

http://localhost:4503/content/dam/formsanddocuments/myforms/us-en/users-from

 

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by EstebanBustamante

@varaande 

 

The problem is that you are not using an extension, so AEM does not know what to serve, if you pay attention to your Author URL you are accessing the "formdetails.html" page (http://localhost:4502/aem/formdetails.html/content/dam/formsanddocuments/myforms/us-en/users-from), but in your  Publish URL you are trying to access to an "unknown" resource because the extension is missing (http://localhost:4503/content/dam/formsanddocuments/myforms/us-en/users-from/jcr:content?  ).

 

The "?" at the end will force to invalidate the cache when the page is cached through the dispatcher, so it is not really necessary. 

 

I don't know exactly how your content is organized, but my guess is if you add the extension at the "users-form" it will work fine. Something like this: http://localhost:4503/content/dam/formsanddocuments/myforms/us-en/users-from.html (Please note that I am guessing that "users-from" is a page which exists under the path "/content/dam/formsanddocuments/myforms/us-en/")

 

Hope this helps

2 replies

EstebanBustamante
Community Advisor and Adobe Champion
EstebanBustamanteCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
September 26, 2023

@varaande 

 

The problem is that you are not using an extension, so AEM does not know what to serve, if you pay attention to your Author URL you are accessing the "formdetails.html" page (http://localhost:4502/aem/formdetails.html/content/dam/formsanddocuments/myforms/us-en/users-from), but in your  Publish URL you are trying to access to an "unknown" resource because the extension is missing (http://localhost:4503/content/dam/formsanddocuments/myforms/us-en/users-from/jcr:content?  ).

 

The "?" at the end will force to invalidate the cache when the page is cached through the dispatcher, so it is not really necessary. 

 

I don't know exactly how your content is organized, but my guess is if you add the extension at the "users-form" it will work fine. Something like this: http://localhost:4503/content/dam/formsanddocuments/myforms/us-en/users-from.html (Please note that I am guessing that "users-from" is a page which exists under the path "/content/dam/formsanddocuments/myforms/us-en/")

 

Hope this helps

Esteban Bustamante
kautuk_sahni
Community Manager
Community Manager
September 28, 2023

@varaande Did you find the suggestion from @estebanbustamante helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.

Kautuk Sahni