similar to #30784 but only for the repo explore page is covered by #30876 for the main branch (cherry picked from commit d410e2acce22e5b3518a9bf64a9152b32a91fe18)