Condition to check if the current URI contains a slugified string.

How would I write the following condition:

If [the current URI] contains [a slugified title/string]...

I have tried the following to no avail:

{{ if (current_uri | contains:"{title | slugify}") }} (Condition never true) {{ if (current_uri | contains:"title | slugify") }} (Syntax error) {{ if (current_uri | contains:{title | slugify}) }} (Undefined offset: 0)

>>>>>>> Unanswered <<<<<<<
1 Reply
2 Followers