code: public function onPermalinkChanged(PermalinkChangedEvent $event)
      {
          $previousPermalink = $event->getOriginalText();
          $newPermalink = $event->getChangedText();
  
          $this->updatePermalinkOnBlocks($previousPermalink, $newPermalink);
          $this->updateHomepagePermalink($previousPermalink, $newPermalink);
      }
docs: Update permalinks on the blocks where the permalink was used
  
  @param \RedKiteCms\EventSystem\Event\Page\PermalinkChangedEvent $event