Vanity URL for Forms | Community
Skip to main content
Level 2
June 19, 2020

Vanity URL for Forms

  • June 19, 2020
  • 3 replies
  • 2773 views

I would like to understand what is the best way to create Vanity URL for public facing forms.

For eg. consider a form which is rendered using a custom profile like this :

http://hostname:4502/content/profile/customProfile?contextRoot=crx:///content/dam/formsanddocuments/myforms&template=form1.xdp

 

how can i mask the URL so that public facing link appears to be like:

http://hostname:4502/form1.xdp

or

http://hostname:4502/formStore/form1.xdp

I want to generalize the approach, so that a single config /mapping can be used for all the form templates which are located in the same folder.

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

3 replies

Level 8
June 19, 2020

What is your use case?

are you trying to populate data in the form?

what kind of form is it?

Level 2
June 22, 2020

Hi Girish,

 

We have quite simple XDPs being simply rendered as HTML / Mobile form - for now. There's no pre populated data, and these forms do not trigger any workflow.

The user can fill the form online, and then click a button to generate a flattened PDF of their form, which can be later posted via email or conventional postage.

 

There's a custom render profile which introduces some minor cosmetic changes to toolbar.

All our forms are in a single folder under /content/dam/formsanddocuments/<folder>

 

There's a public portal which currently has links to PDF forms, and those will be replaced by these new links for rendering HTML forms.

While there will be a load balancer / webserver / dispatcher layer which will conceal the actual host where AEM is running, but we also want to conceal the structure of our rendering profile, or the folder where our forms are located, which gets exposed in the URL.

 

Mayank_Gandhi
Adobe Employee
Adobe Employee
June 23, 2020

Try using the AEM vanity URL approach. 

https://www.youtube.com/watch?v=JgKkGZxXsrs

 

Mayank_Gandhi
Adobe Employee
Adobe Employee
June 23, 2020
Level 8
June 29, 2020

Rendering profile can be hidden

but not sure about the xdp path

what is the reason you want to hide xdp path?

Level 2
July 1, 2020
Hi Girish, our forms links are going to be put up on a website, which is not controlled by our department. therefore we wanted to have a layer of control, so that for minor changes we could use rewriting/masking layer to point to different URLs if needed. For eg. if render profile name changes, we wouldn't have to update all links on website, but simply update our rule for URL rewriting. I was finally able to do this by downloading the IIS rewrite module and creating a simple regex based rewrite rule. I'm going to keep an eye if anything behaves oddly and share with your guys. Thanks for your suggestions.