multiple url list in vanity_urls in aem as cloud dispacther | Adobe Higher Education
Skip to main content
Level 4
November 8, 2023
Risolto

multiple url list in vanity_urls in aem as cloud dispacther

  • November 8, 2023
  • 2 risposte
  • 686 visualizzazioni

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-%20/vanity_urls
/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 ?

 

 

Questo argomento è stato chiuso alle risposte.
Migliore risposta di arunpatidar

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
}

2 risposte

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorRisposta
Community Advisor
November 10, 2023

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
kautuk_sahni
Community Manager
Community Manager
November 20, 2023

@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