# Conditional rendering connector

**URL:** https://meta.discourse.org/t/conditional-rendering-connector/131262
**Category:** Development
**Created:** [October 17, 2019, 2:37pm UTC](https://meta.discourse.org/t/conditional-rendering-connector/131262 "2019-10-17T14:37:12Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Jono\_Brain2](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jono_brain2/32/106550_2.png) [@Jono\_Brain2](https://meta.discourse.org/u/Jono_Brain2)
#### Post date: [October 17, 2019, 2:37pm UTC](https://meta.discourse.org/t/conditional-rendering-connector/131262/1 "2019-10-17T14:37:12Z")

</div>

Hi

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?
