Forum Discussion
jc758
11 years agoAdvisor
Ok
for the moment i've got this workaround:
<#if coreNode.id == "my-blog" && clientDevice.mobile> <#assign mob_check = http.session.attributes.name.get("mobilecheck", "no") /> <#if mob_check == "no"> ${http.session.setAttribute("mobilecheck", "done")} <#assign redir_url = http.request.url?replace("?device-view=mobile","") /> <#assign redir_url = redir_url + "?device-view=desktop" /> ${http.response.setRedirectUrl(redir_url)} </#if> </#if>
but I guess I could do the same thing in a proper way ...
Can we access the session var for the clientDevice?
More generally , any suggestion ?
regards
JC
Related Content
- 4 years ago
- 13 years agoInactive User
- 6 years ago