hotfix: handle correctly case for sidebar links that are functions