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

Redesign how short URLs are generated #20

Open
6 tasks
cdchapman opened this issue Sep 14, 2016 · 0 comments
Open
6 tasks

Redesign how short URLs are generated #20

cdchapman opened this issue Sep 14, 2016 · 0 comments

Comments

@cdchapman
Copy link
Member

cdchapman commented Sep 14, 2016

Helpful background documents:

Business requirements:

  • Blog posts only need short URLs once they are published. But we should use a different short link for each version, so we can track links to individual document versions (see Create a process for snapshotting items #117). This should be automatic.
  • Should be able to add arbitrary links to track specific marketing campaigns, etc. (does the insertion need to be dynamic? I think not, since marketing campaigns are going to be a pre-thought-through sort of thing, and may include additional syndicated content that we would publish at the same time).

Implementation:

  • Update short_url helper code to implement new short link design. - Do we use a third-party shortener, or roll our own with something like NewBase60? Whatever it is, it should be deterministic.
  • Add nginx server for the short_url domain (if it exists).
  • Express link map as nginx redirections.
  • Create a Nanoc data source and accompanying file that creates short url items for arbitrary URLs.
  • Create Nanoc rules for these url items.
  • Add tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant