Expandir la barra de logros de la comunidad.

Submissions are now open for the 2026 Adobe Experience Maker Awards.
RESUELTAS

Associate Vanity URLs with expiry date

Avatar

Level 2

Hello everyone, 

I have a requirement to associate the Vanity links to an expiry date. 
(i.e.) Say I have a Page A 
on the Vanity section am using the following vanity links 

/campaign/101-June-2025
/campaign/225-Dec-2025
/campaign/301-Jan-2026


When the Vanity expires, I should not only remove this entry on the page but also update the links/CTAs that point to the expired page with some other link. 


Can you please suggest how to achieve this ? Do let me know if there is an alternative ? 

1 solución aceptada

Avatar

Respuesta correcta de
Community Advisor

Hi @harishdev 

I am not sure if there is any OOTB feature available.

But you can write a cron job that check those pages(configuration)-

  • search for the reference via using RefreshSearch 
  • remove the expired vanity from page
  • Update the link refresh
  • publish all the updated pages
Arun Patidar

AEM LinksLinkedIn

Ver la solución en mensaje original publicado

5 Respuestas

Avatar

Respuesta correcta de
Community Advisor

Hi @harishdev 

I am not sure if there is any OOTB feature available.

But you can write a cron job that check those pages(configuration)-

  • search for the reference via using RefreshSearch 
  • remove the expired vanity from page
  • Update the link refresh
  • publish all the updated pages
Arun Patidar

AEM LinksLinkedIn

Avatar

Level 10

Because automatically changing website content is a sensitive operation, I suggest, in addition to Arun's suggestion, that editors manually verify algorithmic changes before publication. This preview would allow editors to review the algorithm's output.

Avatar

Level 1

On top of the AEMaaCS will not support the crone job, 

Avatar

Level 10

Avatar

Administrator

@harishdev Did you find the suggestions helpful? If you need more information, please let us know. If a response resolved your issue, kindly mark it as correct to help others in the future. Alternatively, if you discovered a solution on your own, we'd appreciate it if you could share it with the community. Thank you!



Kautuk Sahni