Conditional based on URL path

Hi guys,

I’m new to bubble and I’m struggling with some very simple. I want to style a navigation element to show the user which page they’re on, but I can’t figure out how the conditional works…

Here’s what I’ve got.

Any ideas what I’m doing wrong here?

Thanks!

Hey @thomas4

I would suggest changing your expression to ‘Current page name is dashboard’

Let me know if that does the trick
Ambroise

Need extra help?

Book a free 15 minutes call - happy to help if I can

Hey Ambroise, that sounds logical, although I can’t find a ‘current page name is’ option in the dropdown.

What am I missing here?

@thomas4 are you not using a reusable element for your navigation menu?

Need extra help?

Book a free 15 minutes call - happy to help if I can

I’m not! Let me try and create one.

If you’re not using a RE, then it means that you have a unique navigation menu per page. You can simply change the background style and border on the Dashboard group manually, without having a condition

Ambroise

Need extra help?

Book a free 15 minutes call - happy to help if I can