We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3749
    • 24,544 Posts
    Great news!

    Is it possible that this is related to the occasional weirdness I’ve been seeing with makeUrl() + sendRedirect()?
      Did I help you? Buy me a beer
      Get my Book: MODX:The Official Guide
      MODX info for everyone: http://bobsguides.com/modx.html
      My MODX Extras
      Bob's Guides is now hosted at A2 MODX Hosting
      • 22303 MODX Staff
      • 10,725 Posts
      Quote from: BobRay at Feb 21, 2011, 03:44 PM

      Great news!

      Is it possible that this is related to the occasional weirdness I’ve been seeing with makeUrl() + sendRedirect()?
      Not likely; what weirdness is this you speak of? Are you making sure to use the full scheme option when creating a URL for sendRedirect() with makeUrl()? IE and some other browsers don’t like relative paths in location header redirects.
        • 3749
        • 24,544 Posts
        Quote from: OpenGeek at Feb 22, 2011, 07:37 AM

        Quote from: BobRay at Feb 21, 2011, 03:44 PM

        Great news!

        Is it possible that this is related to the occasional weirdness I’ve been seeing with makeUrl() + sendRedirect()?
        Not likely; what weirdness is this you speak of? Are you making sure to use the full scheme option when creating a URL for sendRedirect() with makeUrl()? IE and some other browsers don’t like relative paths in location header redirects.

        Nothing I can reproduce, but I’ve been seeing more than the usual amount of issues on the Forums with forwarding users to other pages in the last few releases and I experienced it with one of my own snippets where a full scheme didn’t help. I ended up forwarding to index.php?id=$id because I couldn’t get makeUrl() and sendRedirect() to work reliably.

        Do you know what version introduced $context->makeUrl()? I remember I suspected the code there at the time.
          Did I help you? Buy me a beer
          Get my Book: MODX:The Official Guide
          MODX info for everyone: http://bobsguides.com/modx.html
          My MODX Extras
          Bob's Guides is now hosted at A2 MODX Hosting