Skip to content
This repository has been archived by the owner on Jul 17, 2018. It is now read-only.

Private URLs for sharing drafts #19

Merged
merged 4 commits into from
Feb 16, 2013
Merged

Private URLs for sharing drafts #19

merged 4 commits into from
Feb 16, 2013

Conversation

aprescott
Copy link
Owner

Sharing a draft would be good to have. I've needed this myself and had to bodge it.

Every draft would need a corresponding temporary URL that would become unavailable after the post is published.

This is, of course, just a file, so the name would be random, but there needs to be a way to link together drafts and temporary URLs so we can delete them on publish, lest the content get stale after edits to published posts. Plus it's good housekeeping.

@aprescott
Copy link
Owner Author

Something as simple as /private-draft/<slug>/<random> might work. On renames, move the directory, and on publish, delete it.

Slight wrinkle: if you're working outside of the admin interface and you rename the draft, you don't want to have to remember to rename the folder in /private-draft.

aprescott added a commit that referenced this pull request Feb 16, 2013
@aprescott aprescott merged commit e679eea into master Feb 16, 2013
@aprescott aprescott deleted the private-draft-previews branch February 16, 2013 18:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant