Fixes 'View the tree' link for anonymous users