We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27022
    • 47 Posts
    When trying to convert a blog to Articles, I'm seeing an issue with the quip author link.

    Using this tag
    [[+authorName]]
    , the link that it generates for a users website after they post adds the modx directory before the users website address.

    Example:
    User puts "google.com" as their web address, the output in code is "google.com" but when clicking on the link, the resulting url is "http://localhost/modx22pl/google.com"

    What am I doing wrong? Does it possibly have something to do with RewriteBase in htaccess?
      • 22840
      • 1,572 Posts
      This will be because your / the user aren't entering the complete url, ie www.google.com so the system is taking it as a relative link and adding the site url before it.

      Might be worth adding it to the bug tracker
        • 27022
        • 47 Posts
        Thanks Paul. Dahh. That seems easy enough.... Would there be a way to tell the quip form processor to add the http://www. to the address if the user doesn't add it? Because obviously, I would think that not all users are going to include the entire url.

        Idk what the best solution would be. I'm just spitballing...
          • 19328
          • 433 Posts
          I just released a fix for this issue.
          Open core/components/quip/model/quip/quipcomment.class.php and change line 496 from
          'url' => $commentArray['website'],

          to
          'url' => 'http://'.str_replace('http://','',$commentArray['website']),


          See https://github.com/modxcms/Quip/pull/9