Expand my Community achievements bar.

SOLVED

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

Avatar

Level 3

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

1 Accepted Solution

Avatar

Correct answer by
Level 10

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.

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

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.