We have a requirement to Implement Url Strategy for translated language sites page URL .All website pages are shared and created in master website publication We have an event system that subscribed to the following event that translates URL for language website publication. If I do a Component/Page updated and publish that page, the below subscribed page publish event are triggering and working fine and page file name get translated to respective language using page override name from main Component meta-data information of the page.
public WesiteUrlStrategy() {
EventSystem.Subscribe<Page, PublishEventArgs>(SetLocalizedPageFileName, EventPhases.Initiated);
EventSystem.Subscribe<PublishTransaction, SaveEventArgs>(UnlocalizePageAfterPublish, EventPhases.TransactionCommitted);
EventSystem.Subscribe<Page, UnPublishEventArgs>(AfterPageUnPublish, EventPhases.TransactionCommitted);
}
Everything is working fine when I publish a page.
But, when I update and publish a component using CME or XPM , related link pages are publishing and updating as per expectation but subscribe event for Page “PublishEventArgs” is not triggering .
Am I doing something wrong or is this behavior by design?or some other