0 URL parameters


I need to show a popup only when the page has 0 parameters.
Is there know when the URL has no parameters at all?

Thanks in advance :slight_smile: :computer:

Sure. The expression:

This url doesn't contain ?

… will be true (yes) if there is a querystring, false (no) if it has a querystring. NOTE: This will always resolve to “no” in debug mode since debug mode relies on a querystring (?debug_mode=true).

Fancier solutions that check for “isn’t live mode” are left as an exercise for the reader.


Thanks, @Keith,

I didn’t thought of this one, haha

1 Like

Yup, the only legit place for ? in a URL is as the querystring delimiter so, there ya go.

Yes, definitely use the ‘?’ in the URL

I’d go with thisURL:splitby(?):item#2 is empty though

Just to avoid the edge case where someone lands on the page with the ‘?’ but without query parameters

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.