We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 8425
    • 159 Posts
    Hello,
    I’m encountering a strange bug. Here is what I’m doing.
    I have private documents links on public pages. When a user clicks on a link for a private document, the login dialog comes up.
    I pass along the document Id as an argument to the URL in order to redirect the user to the document he/she click on upon successful login.

    I used a snippet [[GetArticleID]] to return the document Id as follow
    <?php
    return = (int) $_GET['documentID'];
    ?>
    

    The WebloginPE call is a follow:
     
    [!WebLoginPE?  &type=`simple` &regType=`verify` &loHomeId=`20` &liHomeID=`[[GetArticleID]]` &loginFormTpl=`FormLoginPE` !]
    

    The snippet [[GetArticleID]] returns the proper document ID but upon successful login the user is not redirect to that document Id. I must be doing something really stupid... Does anyone know what’s happening?
    Thanks a lot...
      • 33992 ☆ A M B ☆
      • 455 Posts
      &liHomeID=`[[GetArticleID]]` ==> &liHomeId=`[[GetArticleID]]` wink
        God loves me. 【ツ】


        MODX.ir (Persian Support)

        Boplo.ir/modx/ (Persian)
        • 8425
        • 159 Posts
        Thanks actually I used &liHomeId=`[[GetArticleID]]`. Same problem...
          • 33992 ☆ A M B ☆
          • 455 Posts
          Use a number instead [[GetArticleID]] to find the problem source, webloginpe or GetArticleID
            God loves me. 【ツ】


            MODX.ir (Persian Support)

            Boplo.ir/modx/ (Persian)