Get corresponding vanity path of a page while in author by referring mapping in publish | Community
Skip to main content
Level 2
October 16, 2015
Solved

Get corresponding vanity path of a page while in author by referring mapping in publish

  • October 16, 2015
  • 1 reply
  • 571 views

Hi All,

I have a requirement of getting the vanity URL of a page based on the mapping mentioned in pub while being in author instance.Mappings are available only in publish instance.

My ultimate requirement is while activating a page I need clear dispatcher cache of that specific page both in full page path as-well as in vanity path location.

Thanks in advance

LM

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 Sham_HC

General architecture is author for write & publish is read only copy of author with exception of social module. In your setup that is not true. Any reason?

Anyhow For your use case you do not have to get vanity path from publish instead configure flush at publish instance rather than at author.  

Alternately there are couple of option to make a call to publish from author to get a vanity path Ex:- http://<port>:<port>/content/geometrixx/en/jcr:content.json  the property sling:vanityPath will give the required value.

1 reply

Sham_HC
Sham_HCAccepted solution
Level 10
October 16, 2015

General architecture is author for write & publish is read only copy of author with exception of social module. In your setup that is not true. Any reason?

Anyhow For your use case you do not have to get vanity path from publish instead configure flush at publish instance rather than at author.  

Alternately there are couple of option to make a call to publish from author to get a vanity path Ex:- http://<port>:<port>/content/geometrixx/en/jcr:content.json  the property sling:vanityPath will give the required value.