I am trying to set a conditional for a reusable element to appear
I have the following paths:
website.com/new/sluggoeshere
website.com/edit/sluggoeshere
When the page is “edit” I want the reusable to appear, currently I am using a this url “contains” edit argument to trigger the reusable element, but this doesn’t seem very robust (for example if the slug contains the word edit it would also trigger, which is unlikely but could happen)
Does anyone know a more robust way to do this? It seems like there should be a better way?
Thanks