My canonical tags are working strangely on multi page sets. For example, this is a working URL:
... however, the canonical for such page is being printed as:
(notice the custom taxonomy variable should be at the end but is not)
Google is logging a gazillion 404's since all these pages obviously don't exist.
Any ideas where is the canonical constructed or, worst-case, how could I disable it for a specific template PHP?