Hi @jeroenrotty,
Thank you for your quick answer.
I am using exactly the function you just sent me which is still without success. The only thing I want to do is to add the URL parameters in the canonical link.
Example: https://mon-site.com -> https://mon-site.com/?pagination=2
Is the condition for the page ID important? Because I still have a lot of pages that need to be assigned…