We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 23217
    • 44 Posts
    I am using the WebLogin snippet. If I am sitting on a restricted page (only people from a certain group can view it) when I logout, I get redirected to the Unauthorized page rather than, say, the site start. This happens whether I am in the manager or not. Anyone else run into this problem? I surfed around a bit in the forums and did not see anything addressing this problem, so did I miss something?

    Thanks in advance.

    P
    • There are two ways to deal with that. Have your "unauthorized" page be the login form page, or the home page, or whatever page you want users to go to when they log out.

      The other way is to specify the page to go to on logout in the snippet call parameters using &logouthomeid.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 23217
        • 44 Posts
        Thanks very much sottwell! (I will choose option 2...)

        P
          • 23217
          • 44 Posts
          I tried
          [!WebLogin? &logouthomeid=`2`!]
          and
          [!WebLogin? &lohomeid=`2`!]
          and
          [!WebLogin? &logouthomeid=`2` !]

          and none of the above take me to page 2 (the home page for the site). I do have the unauthorized page specified (and that is where I end up). Am I doing something obviously wrong?

          Again, thanks in advance.

          P
            • 23217
            • 44 Posts
            I just started using WebLoginPE. It does the trick very nicely. Color me done.