Mobile Detection and Redirection

Description

Simple mobile detection and redirection in dotCMS

Link: http://dotcms.com/docs/latest/javadocs/com/dotmarketing/beans/Clickstream.html

Code

#set($clickstream  = $session.getAttribute("clickstream"))
#if($clickstream.isMobileDevice())
  $response.sendRedirect('http://m.site.com')
#end