We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28042 ☆ A M B ☆
    • 24,524 Posts
    I think it's something to do with the DNS configuration. I'm not having a problem with it at the moment, although one page did but as soon as I clicked the same menu item again it went back to .com
      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
      • 13226
      • 953 Posts
      Quote from: DanLoffler at Feb 27, 2012, 02:29 PM


      Here's my footer chunk ...

      <p>
      <a href="Privacy-Policy" title="Privacy Policy">Privacy Policy</a> - 
      <a href="Terms-of-Use" title="Terms of Use">Terms of Use</a> - 
      <a href="Disclosure" title="Disclosure">Disclosure</a> - 
      <a href="Contractors" title="Contractors">Contractors</a> - 
      <a class='last' href="Form-Pop-up" title="contact us">Contact Us</a>
      </p>
      <small class="copyright">© 2012 Cross Country Home Services, Inc. All Rights Reserved</small>
      


      Can I make a constructive suggestion on this:

      When creating fixed blocks of link code as with your footer navigation, I would suggest using the "ID" instead of the link Alias.

      Change this:
      <a href="Privacy-Policy" title="Privacy Policy">Privacy Policy</a>
      


      To this:
      <a href="[~IDNUMBER~]" title="[*menutitle*]">Privacy Policy</a>
      


      Change "IDNUMBER" to the number of the relevant page e.g Privacy-Policy = 9

      I have added "menutitle" in the title tag so it dynamically changes if and when you update it - you don't have to go into the chunk and manually change the text this way.

      You could even use a "Wayfinder" call which only shows specific ID's:

      [[Wayfinder? &startId=`0` &includeDocs=`1,2,3,4` &hideSubMenus=`1` &sortBy=`menuindex` &titleOfLinks=`menutitle`]]
      



      I dont know if this is causing any problems but your "Base Href" code is marked-up incorrectly, at the moment its rendered as:
      (had to replace the domain name with the text YOURDOMAINNAME as the board re-writes it with nofollow etc. making the code unreadable)

      <base href="YOURDOMAINNAME"></base>
      


      The code should be rendered like this:
      <base href="YOURDOMAINNAME" />
      


      Or like this in your template file:
      <base href="[(site_url)]" />
      
      [ed. note: iusemodx last edited this post 14 years, 7 months ago.]
        • 6491
        • 70 Posts
        Susan, thanks for your help. It is working now.
          • 6491
          • 70 Posts
          Iusemodx,

          Are you sure the base URL needs to be changed from
          <base href="[(site_url)]"><base>
          to
          <base href="[(site_url)]" />
          ?

          It seems to work fine now.

          Dan
            • 13226
            • 953 Posts
            @ Dan

            The code in your site template when rendered in a browser ia s mix of XHTML & HTML 5 (Doctype used)

            HTML 5 Base reference - http://www.w3.org/TR/html4/struct/links.html#edef-BASE

            W3C Base Element - http://www.w3.org/TR/html5/semantics.html#the-base-element

            The correct way to display the Base tag in XHTML:

            <base href="[(site_url)]" />


            The correct way to display the Base tag in HTML 5:

            <base href="[(site_url)]">


            The difference between the two is the "/" which depicts a closing tag in XHTML - all tags that do not have a closing tag in XHTML have to be closed in themselves.

            This is only for information and clean code, so, If all is working now its up to you if you want to have a site that has clean code.

            Cheers.