Conditional rendering connector


I have created a plugin and I have a connector setup

connectors / above-main-container

This works and I can conditional render using shouldRender if a user is logged in or not. However what I need to do is conditionally render it based on what the current page is. e.g. I want to render it when we are looking at categories-list but not latest.

Apart from using CSS and hooking into the body class I can’t find a way to do this. Is there anyway to get access to whats currently being viewed within my connector?