Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permalinks destroyed by "unpublish" #25

Open
kylewm opened this issue Dec 6, 2014 · 0 comments
Open

Permalinks destroyed by "unpublish" #25

kylewm opened this issue Dec 6, 2014 · 0 comments

Comments

@kylewm
Copy link
Owner

kylewm commented Dec 6, 2014

Unpublishing a post, i.e. resaving it as a draft, is (oddly) more destructive than just deleting it because it overwrites the permalink path with the drafts/hash path. And re-publishing it will update the day/time to right now and update the permalink accordingly, so that it's very difficult to ever get it back to its original permalink.

This is probably the desired behavior if you accidentally clicked "Publish" 5 minutes ago, and want a little more time to edit. But if you Unpublish an older post, it could be pretty bad and I'm not totally sure how to fix it. Perhaps draft_path should be a separate DB field.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant