We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 31471
    • 206 Posts
    Maybe I overlooked it, but I can’t find XHTML URLs setting in Revo’s System Settings.

    On my dev site, Login snippet outputs & in the URL, but I need & there.
    I modified the code of login.snippet.php at lines 150, 152 and 158 to use & there, cleared the cache, no advance.

    Can anybody help?
      • 28215
      • 4,149 Posts
      It was left out on accident but still referenced; just add the System Setting with a key of ’xhtml_urls’ and a xtype of ’boolean’ (Yes/No).
        shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
        • 31471
        • 206 Posts
        Thank you Shaun, but I still have no luck.

        I wonder what can Revo do with it, when login.snippet.php produces the URL?
        Line 158: [tt]$phs[’logoutUrl’] .= strpos($phs[’logoutUrl’],’?’) ? ’&’ : ’?’;[/tt]
        Strange, it doesn’t matter if I change & to & here.
          • 22303 MODX Staff
          • 10,725 Posts
          Report a bug for the Login snippet at http://github.com/splittingred/Login/issues

          Anything that uses the link tags, e.g. [[~4? &food=`beer` &beer=`food`]] or the modX::makeUrl() method should respect the xhtml_urls setting.
            • 31471
            • 206 Posts
            :) &food=`beer` &beer=`food` that’s great! I can agree.
            Still,
            Quote from: vhollo at Aug 07, 2010, 08:24 AM

            login.snippet.php
            Line 158: [tt]$phs[’logoutUrl’] .= strpos($phs[’logoutUrl’],’?’) ? ’&’ : ’?’;[/tt]
            Strange, it doesn’t matter if I change & to & here.
              • 31471
              • 206 Posts
              Or maybe [[~4? &food=`beer` &beer=`food`]] or the modX::makeUrl() method should respect the xhtml_urls setting?
              Just want to understand what’s going on.
                • 22303 MODX Staff
                • 10,725 Posts
                Quote from: vhollo at Aug 07, 2010, 05:56 PM

                Or maybe [[~4? &food=`beer` &beer=`food`]] or the modX::makeUrl() method should respect the xhtml_urls setting?
                Just want to understand what’s going on.
                That’s the same thing; I am saying the tags and that method do respect the xhtml_urls setting. huh The problem is the Login snippet is not using either to create the URL.
                  • 31471
                  • 206 Posts
                  Quote from: OpenGeek at Aug 10, 2010, 09:23 AM
                  ???
                  Never mind, fixed snippet is out in the Extras.