That's why before '$' is '?'?
need what for '?$1'?
at the end of the slash is not, then, in this case nginx for no reason, no this does redirect to
generally have to do an internal rewrite to /blog/category/name?test, but apparently at this location there is some script that redirects thinking that this is a test category
address with a slash at the end dobrosovestnosty in /blog/category/?test and /blog/category/name/?test where the url of the rolls.