I require a script (or modify what I have currently) that will generate a <link rel="canonical"> tag on the following pages.
[login to view URL] $category_depth =="nested"
[login to view URL] $category_depth =="products"
The script will also need to handle pagination in the way that I specify.
More details via PMB.