forked from gitea/gitea

Backport #23325 Fix displaying same projects icons between user/repo projects. And fix incorrect projects links. A part of https://github.com/go-gitea/gitea/pull/22865.    Co-authored-by: yp05327 <576951401@qq.com>