Resolve "404 for package details link under Infrastructure Registry for projects nested under 2 group levels"

What does this MR do?

Fixes a broken link to the new infrastructure registry package details page we introduced in %14.0.

Screenshots (strongly suggested)

Does this MR meet the acceptance criteria?


Availability and Testing

Related to #334197 (closed)

Edited by Matt Kasa