Fix redirect where `$parent_slug` is empty in submenu context