We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26475
    • 3 Posts
    Hi
    can anyone help me...I have a secure area on my modx website where the page is password protected. There are documents within the secure area - child pages of the container page. I am trying to link to PDF documents (the page is a resource library). The problem I am having is that the links do not work as they are adding the container name into the link e.g.

    http://www.ioha.net/**containername**/assets/files/**filename.pdf**

    In the link above **containername** is the part of the link that is causing the problem. How do I get modx to get the files from the correct location:

    http://www.ioha.net/assets/files/**filename.pdf**

    Also: is there a way of protecting the document links from anyone downloading them?

    Thanks

    Sally
      • 36592
      • 970 Posts
      I think you need to add this line in the <head>-</head> section of your template.
      <base href="[(site_url)]"></base>
        • 26475
        • 3 Posts
        Thanks that worked perfectly!
          • 26475
          • 3 Posts
          Is there a way of securing the documents within a password protected area?

          At the moment if I log out and copy and paste the link location I can still get to the document. That is not secure really - is there any way that the links can be encrypted somehow?

          Thanks