We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 37514
    • 178 Posts
    I want to print out the full URL of the page I am on so I can do some basic validation here:

    <a href="http://validator.w3.org/check?uri=http://www.adrianramsay.org.uk/[*alias*].html">Validate XHTML</a>

    Because some pages are in folders / containers, that doesn’t work .. I guess I might need some recursion; but does anyone have a ready made answer?
      • 4310
      • 2,310 Posts
      Why not put this in your template and let the validator workout the url?
      <a href="http://validator.w3.org/check/referer" target="_blank">Validate XHTML</a>
      
        • 25969
        • 118 Posts
        bunk58 has the most correct answer but just so you know...
        <a href="http://validator.w3.org/check?uri=[(site_url)][~[*id*]~]">Validate XHTML</a>
        ...would’ve been what you were looking for.
          • 37514
          • 178 Posts
          Thanks all!