Hey,
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
Hey,
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
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.
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
This topic was automatically closed after 70 days. New replies are no longer allowed.