Expand my Community achievements bar.

SOLVED

multiple url list in vanity_urls in aem as cloud dispacther

Avatar

Level 4

Hi Team,

 

in AEM as cloud service , in Farm we already have a out of the box by adobe to use and create a vanity list via page properties

 

# if the package is installed on publishers to generate a list of all content with a vanityurl attached
# this section will auto-allow the items to bypass the normal dispatcher filters
# Reference: https://docs.adobe.com/docs/en/dispatcher/disp-config.html#Enabling%20Access%20to%20Vanity%20URLs%20...
/vanity_urls {
/url "/libs/granite/dispatcher/content/vanityUrls.html"
/file "/tmp/vanity_urls"
/delay 300
}

 

can we add another new entry of new html with list of vanity list authored by author and can be enabled to allow dispatcher to allow this custom vanity list of urls using Java filter and Servlet to expose the list of vanity URLs

 

another new entry

 

/vanity_urls {

/url "/libs/granite/dispatcher/content/vanityUrls.html"
/url "/list/getvanityredirects.html"  #this is custom vanity html listing another vanity and redirecting urls
/file "/tmp/vanity_urls"
/delay 300
}

 

will this work ?

 

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

I think you need to add

 

/vanity_urls {
/url "/libs/granite/dispatcher/content/vanityUrls.html"
/file "/tmp/vanity_urls"
/delay 300
}

 

/vanity_urls_2 {
/url "/list/getvanityredirects.html" 
/file "/tmp/vanity_urls"
/delay 300
}



Arun Patidar

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

I think you need to add

 

/vanity_urls {
/url "/libs/granite/dispatcher/content/vanityUrls.html"
/file "/tmp/vanity_urls"
/delay 300
}

 

/vanity_urls_2 {
/url "/list/getvanityredirects.html" 
/file "/tmp/vanity_urls"
/delay 300
}



Arun Patidar

Avatar

Administrator

@sonuk85184451 Did you find the suggestions from users 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