Jump to content

Preview unpublished pages?


torf
 Share

Recommended Posts

I have a strange issue when previewing unpublished pages, and need some advice how processwire is supposed to work:

When I add a new page in my tree a logged in user can preview the page even when it is unpublished via the view button. On my production site this is no problem and would of course be the desired behaviour.
But on my live site clicking on "view" ends in a 404 every time as long as the page is unpublished. That even happens when I'm logged in as superuser.

What is the "normal" behaviour" and does anyone know what could cause that effect?

 

Link to comment
Share on other sites

4 hours ago, torf said:

When I add a new page in my tree a logged in user can preview the page even when it is unpublished via the view button.

This is the expected behaviour, with one catch: users with edit access to said pages should be able to view them. This always includes superusers.

If you are certain that the sites themselves are identical (code and site settings, template settings, permissions, etc.) there are a couple of things to check first:

- Is there some sort of caching on the live site that isn't present on the working environment?

- Is the admin domain the same as the one used after clicking "view" links on the live site?

  • Like 1
  • Thanks 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...