FTL training is here.
I am trying to add a query string to my FTL page, for example http://localhost/search , I would like to add a query string to the url, say http://localhost/search?bing so that the user can switch with the default setting, when the query string is missing.
However, I cannot capture the queryString from the URL. I am also trying to avoid using a JavaScript solution on this.
here is my code:
<#if RequestParameters.bing?exists > <#assign useServer = "http://www.bing.com"> <#else> <#assign useServer = "http://www.google.com"> </#if> <h1>${useServer}</h1>
entering the query string in the url still returns http://www.google.com in h1 .
source share