title: how give desktop or mobile XPages when using Mobile Theme XPages
body: <p>Hello this is a stupid and very simple question
  <img src="https://i.stack.imgur.com/R3KfB.png" alt="enter image description here"></p>
  
  <p>If you have set into the XPages proprierties the flag "use mobile themes for Xpages with prefix" in all XPages that begin with <strong>m_</strong> the runtime add theme and CSS/JS resources for mobile..is it correct?</p>
  
  <p>So... I have created two XPages named index.xsp and m_index.xsp</p>
  
  <p>I need to redirect to correct XPages if the device is a Mobile (index.xsp) or Deskop (m_index.xsp).
  The only solution that I found is create a startup XPages named for example "redirect.xsp" and in BeforePageLoad event insert the SSJS code that read a User-Agent for redirect 302.</p>
  
  <p>Is the good way or you have another best solution?</p>
  
  <p>Tnx to all</p>