A different approach would be stick to the current system you have in place, i.e. using data from the URL string to discern which menu you are in.
You’ll have to check why the conditional isn’t evaluating to true for the second RG’s cell. One of the following might be the culprit
- URL item doesn’t exist
- If it exists, a capitalized version of it isn’t equal to
Current cell's Category_main's Display.