There is a requirement in our project where i have to check if the current page path contains a specific text or not. How to write sightly code for this.
for ex:- <sly data-sly-test.pagepath=${currentPage.path}/>
this will returns path as "/content/project/ab/cd/home/" now i want to check if it has " /cd/ " text in it.
Thanks in advance.