[2.7.x] NEXUS-6250: Index rendering with query parameters.

Backport to 2.7.x

Original PR
https://github.com/sonatype/nexus-oss/pull/343

Issue
https://issues.sonatype.org/browse/NEXUS-6250

CI
https://bamboo.zion.sonatype.com/browse/NX-OSSF23