Links from Google search with parameters interfere with indexing

Hello colleagues!

I am very much asking for your advice, how to be prompt.
I have indexed pages with parameters that Google adds to track visits.

My guess is that it’s the nginx server probably caches the page when it gives it to this request.

How do I configure the server to give the canonical page when this address is accessed.
That is, that the server redirects to the canonical page, i.e. without parameters, and gives it. Then this page with parameters will not be cached.

Do I understand correctly?

Please give me a hint

With respect and best wishes

Translated with DeepL Translate: The world's most accurate translator (free version)