Hide the details page link in the listing module if the details page condition is not met (see #6332)