We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7914
    • 137 Posts
    I have a page that somewhat doubles as a category "home" and the actual site home page. I need it like this so my url alias path(s) are correct

    www.mysite.com/myresource/file.html for example. I am running into a problem where If I am off on another page, and I click the link to go back to the home page, I can see that the url is going to be www.mysite.com/www.mysite.com/

    Currently, I have a url alias of "myresource" for this page. (The page that is serving as my site start and a category)

    I tried making the url "[[++site_url]]myresource" knowing that it wouldn’t work but worth a shot. I’m just not sure how to force modx to remove the second url. www.mysite.com/www.mysite.com to just www.mysite.com. Or achieve the same action as putting "/" as my url. I just need to keep "myresource" because of the alias path for files within the container.

    Hopefully that makes some sense... embarrassed
      • 22303 MODX Staff
      • 10,725 Posts
      You need <base href="[[++site_url]]"> in the head of your template( s ).
        • 7914
        • 137 Posts
        Funny, I had that but then I also snuck in a "/" in there as well. Cleaned up my code and all is well. Thank you for your response!