private function fixForActions(ActionedResourceInterface $resource): void
    {
        $actions = $resource->getActions();

        foreach ($actions as $action) {
            $routeHref = $action->getHref();
            $href = $this->fixHref($routeHref);
            $action->setHref($href);
        }
    }