Fix redirection in js when pageType != item should redirect to root, dir...

...ectory root/pathname may not exist on the new blog