Avoid duplicates (menu for dynamic page)

Hello,

I don’t know at all how to phrase it properly, sorry if it was already discussed but couldn’t know what to search for.

I’m stuck and it’s probably an easy fix. I have an “Archive” pages with old articles. My main field is Year then there is the Title of the article and then the PDF document. As there are several articles per year, my main field is Year.

I’ve made a dynamic page, so I have two pages :

  1. Archives (All)

  2. Archives (Year)

The “Archives (year)” page is a repeater within which there are :

  1. The title

  2. A button linked to the PDF

This works fine. My problem is with the “Archives (All)” on which I simply want to add a menu : you choose the year and it redirects to the dynamic page. I’ve added a repeater with a button connected to the Year page . But as told above, I have several articles per year and it creates multiple pages. If the year “2018” has three articles, there will be three “2018” buttons, instead of only one… Imagine the mess if I have 100 articles per year and 30 years of archives.

Any idea on how to fix this?