`$action->link['href']` will return a templated link, which isn't appropriate in this case. What error were you seeing?