Removing the /2, /3, /4, etc links for each reply within a topic URL

Hey Seth!
I’m currently facing the same issue on my project.
I have multiple urls for a single page due to it being paginated.

I think that this post can be helpful.
I managed to use this code to redirect all my paginated pages into their canonical page.