NEXUS-6250: index rendering with query params

Query params broke the links that were rendered when a
collection index page was rendered.

Issue
https://issues.sonatype.org/browse/NEXUS-6250

CI
https://bamboo.zion.sonatype.com/browse/NX-OSSF19