1 Reply Latest reply on Oct 26, 2015 4:57 AM by jochen

    Disable mobile client redirection

    anuj.pathak

      Does anybody know how to prevent mobile client redirection to content page in Jive 8 ? is there any system property exists to prevent this ?

      When user navigate to any Space home page , it's redirecting user to space content page which is something we want to prevent

       

      Mobile Team

        • Re: Disable mobile client redirection
          jochen

          Hi Anuj,

           

          I found the following in scripts/jive/responsive.js in Jive 8.0.1:

           

          // REDIRECT PLACE OVERVIEW
          var $overviewLink = $('#jive-place-link-overview-tab');
          if ($overviewLink.length > 0 && $overviewLink.is('.active')) {
              var $activityLink = $('#jive-place-link-activity');
              if ($activityLink.length > 0) {
                  window.location = $activityLink[0].href;
              } else {
                  if (currentPath.endsWith('activity')) currentPath = currentPath.slice(0, -('activity'.length));
                  if (currentPath.endsWith('activity')) currentPath = currentPath.slice(0, -('overview'.length));
                  window.location = currentPath + '/content';
              }
          }
          

           

          Commenting out this code achieves what you are asking for. Unfortunately, I don't see a way to accomplish the same via configuration only.

           

          Best,

          Jochen