Previewing published post doesn't use the proper template
|Reported by:||johnconners||Owned by:|
If I edit a published post I see that the publish module has the 'Preview' button visible in the secondary area. Clicking Preview opens a page that doesn't actually preview the post itself, but shows the post as though it were being seen from an archive page. An example URL is:
From this page clicking the link to view the post itself results in a 404 while attempting to show this URL:
My permalink structure is: archives/%year%/%monthnum%/%postname%/ and the live URL is in fact:
If I change the post status to 'Draft' and click 'Preview' then the preview of the post is correctly shown (just the same as in 2.6.x) at:
I'd expect when the post is published that the 'Preview' button would be replaced with 'View Post' or something similar which would redirect to the live post URL.
One other observation I've made is that as soon as I click 'Preview' an autosave is created in the database for that post if there isn't one already. Maybe irrelevant but thought it was worth a mention.
Change History (5)
- Summary changed from Confusing behaviour of 'Preview' button on published posts to Previewing published post doesn't use the proper template