0

I have an URL field that I'm outputting in my Services Views endpoint and everything works perfectly until I add a query string. The aim is to add UTM parameters to my URL through the rewrite field.

My URL must be

?utm_source=something&utm_medium=something&utm_campaign=[title]&utm_term=[field_keywords]&utm_content=[field_title_2]

What I get as output is

?utm_source=something& amp;utm_medium=something& amp;utm_campaign=[title]& amp;utm_term=[field_keywords]& amp;utm_content=[field_title_2]

So & is being converted to &.

I have played with every variation including trim and strip HTML but can not get it to work. What am I doing wrong?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.