Corrected bug in the new post button that crashed server if clicked from a post page.