matching categories in redirect url