In our system, the HST ( website ) is serving behind a caching server ( named Fastly ). We have a requirement that when editor publish/unpublish a document then system need to automatically purge its related URL.
I have used Event Bus https://documentation.bloomreach.com/14/library/concepts/hippo-services/event-bus.html to subscribe to the publish/unpublish event but I can not find a way to able to calculate the URL from the document path.
I know that we can use the HstLinkCreator to calculate the link but we have no way to get the HstRequestContext or Mount which is necessary to calculate the link.
Any idea would be nice to me ? I thought that a lot of system have such requirement ?