Fixes problem with showing links for non-menu pages