Params in url & seo

I’m definitely not an expert for seo, so I would like to understand how seo crawlers will handle these urls:

https://www.domain.com/section
https://www.domain.com/section/param1:xy/param2:zx

I don’t use these params, so the output is the same.

Is it duplicate content for seo crawlers and what is the best way to avoid it?

Block params for these templates?
Custom Router?
Canonical-Urls?

Thanks in advance for your help!

Canonical URLs using <link rel="canonical" href="..."> are the best solution here.

Thanks!

In a kirby-setup all pages have the option of params like this https://www.domain.com/section/param1:xy/param2:zx. So should I always have a canonical url for all pages, right?

Something like this in the header?

<link rel="canonical" href="<?php echo html($page->url()) ?>" />

Yes, that looks good.