CMS Development

cob666
Member

Smart Content - query parameter is case sensitive

Hi all...

 

I can't believe that nobody else has had to solve this issue in the past so I'm hoping the community can help.  With that said, we are configuring several of our page components with smart content based on a query parameter.  Internally, we are using all lower case identifiers, but we have several customers that are generating links in their applications and occasionally, the parameter value they are sending us is NOT all lower case, so the smart content is not getting applied as expected.  Example:

 

The correct url should look like this:

https://www.company.net?projectid=alpha

 

However, some clients are generating urls like this, which do not display the correct smart content changes:

https://www.company.net?projectid=Alpha

 

Is there a way to configure the smart content item to convert the parameter to all lower case?  I had considered trying to force the parameter to lower case in a module but the query string is read only.

 

We really don't want to have to create a smart content rule for different cases of the same words, so any help would be much appreciated.

 

 

0 Upvotes
2 Replies 2
MiaSrebrnjak
Community Manager
Community Manager

Smart Content - query parameter is case sensitive

Hi @cob666,

 

Thank you for reaching out to the Community!

Just to confirm, is the smart content not applying as expected for all clients that are generating URLs with upper case letters or just for some? 

 

I wanted to invite a couple of subject matter experts to this conversation to see if they have any advice: 

Hi @Teun@louischausse@miljkovicmisa, do you have any tips for @cob666? Thank you!    

 

Cheers
Mia, Community Team


Join us on March 27th at 12 PM for the Digital Essentials Lab, an interactive session designed to redefine your digital strategy!
Engage with expert Jourdan Guyton to gain actionable insights, participate in live Q&A, and learn strategies to boost your business success.
Don't miss this opportunity to connect and grow—reserve your spot today!


Besuche unsere DACH-Community!
Nimm an regionalen Unterhaltungen teil, indem du deine Spracheinstellungen änderst !


Our Community is available in other languages.
Join regional conversations by changing your language settings !

0 Upvotes
cob666
Member

Smart Content - query parameter is case sensitive

Correct, the smart content filter is lower case, ie: 'alpha'.  In my OP, i meant that only some of our customers are generating URLS that are NOT all lower case.

 

When the incoming url parameter matches the case of the filter, the smart content is applied.

When the incomine url parameter does NOT match the filter, the smart content is NOT applied, such as when the paramter is:
projectid=ALPHA or

projectid=Alpha

0 Upvotes