title: Mobile redirection 'fullsite' cookie always redirecting
body: <p>I am using this script to redirect mobile users to the mobile page and make them able to get back to the full site</p>
  
  <pre><code>(function(a,b) {
  
      if (document.cookie.indexOf('fullsite') &gt; -1) {
          return; // skip redirect
      }
      if (location.search.indexOf('fullsite') &gt; -1) {
          document.cookie = 'fullsite=true; path=/;'
          return; // skip redirect
      } 
      if (mobile regexp) {
          window.location = b;
      }
  })(navigator.userAgent || navigator.vendor || window.opera, 'desired.mobile.url')
  </code></pre>
  
  <p>The problem is that it redirects PC users too unless the url is pageurl.com/fullsite
  What is wrong with the script?</p>