I'm working in AEM 6.3. I'm trying to extend the default behavior of vanity URLs such that the following will happen:
I had extended the base page component (template component)and trying to add a new field for I.D in the dialog so that authors have a authoring field in page properties.
So I'd be extending the default page properties vanity functionality to include an ID.
1) User navigates to vanity URL and is redirected to actual URL
2) ID that is associated (and authorable) is appended to the URL
Example:
Vanity URL: /foobar
ID: 123(authored)
Actual URL: www.test.com/plans
Now when I hit the vanity url it should redirect to:
Resulting URL: www.test.com/plans?123
I've been able to modify the page properties to include a new field associated with the vanity URL in the UI. It doesn't appear to be saving the actual value though.
I can add a completely new multifield with both Vanity and I.D fileds in it but how to make this work and how to append the authored I.D to the URL is what i trying to figure out.