We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 19872
    • 1,078 Posts
    I'm noticing that unpublished pages in my site are still accessible on the front end if trailed with .html

    If I navigate to the site followed by the alias only, then the site load the home page be default—which is expected.

    But, if I add .html at the end, then the unpublished page loads.

    myDomain.com/testpage loads the home page
    myDomain.com/testpage.html loads the test page, which is not good sad

    I would expect that if a page is unpublished, and someone links to it from an older link from some other site, then the home page of the site should load — NOT the page that I thought I had taken offline.

    Is this a bug, or do I have something set incorrectly?

    This question has been answered by mmcgee. See the first response.

      • 3749
      • 24,544 Posts
      Is there any chance that those old pages are still in the MODX cache or the browser cache. Are they still available if you view in incognito or private mode after manually deleting all files in the core/cache directory?
        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting
      • discuss.answer
        • 19872
        • 1,078 Posts
        Hi Bob:

        I was just swinging back around to follow-up on this. I was logged in to the manager. Once I logged out, and turned Private Browser On (though not sure that was needed) all was fine, and those unplublished pages were no longer loading.

        All is good.
          • 3749
          • 24,544 Posts
          I should have thought of that. wink The admin user as 'view_unpublished' permission.
            Did I help you? Buy me a beer
            Get my Book: MODX:The Official Guide
            MODX info for everyone: http://bobsguides.com/modx.html
            My MODX Extras
            Bob's Guides is now hosted at A2 MODX Hosting
            • 28042 ☆ A M B ☆
            • 24,524 Posts
            Useful to keep in mind, when you are logged in to the Manager you can see unpublished pages as well as a site that is set to be 'offline'.
              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