We don’t add anything in dispatcher server. Only we use the page properties for adding the vanity url. Since it is a AEM cloud we cannot check the crxde. We checked the page properties by downloading the page and it doesn’t have the vanity url path.
@SantoshSai My Apology. I forgot to add the exact code. I have modified the code above. Please have a look. And by the way, there is no specific error in the error log.
Just getting this - "org.apache.sling.api.SlingException: Cannot get DefaultSlingScript: org.apache.sling.api.resource.ResourceNo...
The tooltip issue was resolved by adding a forward slash in front of the class.
<div class=\'sec-secondary-headings\'><h3>20% off on Mobile Devices</h3></div><div class=\'sec-paragraph\'><div class=\'p3\'><p>Coupon Applied: <b>SALE50</p></div> </div>
Thanks, everyone for the help.