fix issues with collection detail page when javascript is disabled