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

hyphacoop/shortlinks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

97 Commits
 
 
 
 
 
 

Repository files navigation

Hypha Co-op: Shortlinks

For generating our link.hypha.coop shortlinks.

Configuration for these shortlinks are stored in shortlinks.csv.

This repo contains only configuration and documentation. All the updating happens through the update_shortlinks task of the hyphacoop/worker-coop-scripts repo. Please see that repo for details.

Terminology

  • shortlink. The shortened url. Example: https://link.hypha.coop/my-shortlink
  • base URL. The base for the shortened urls. Example: https://link.hypha.coop
  • keyword. (a.k.a. slashtag) The human-readable string that makes up the path of the shortlink, and is appended to the base URL. Example: my-shortlink

💪 Contributing

tl;dr - simply edit shortlinks.csv!

  • Creating a new shortlink? Add a new line.
  • Changing an existing shortlink? Change the resource_url.
  • Removing an existing shortlink? Clear the resource_url field, leaving the keyword field as-is.

To keep things lightweight, make changes directly on master branch, without pull request. (Feel free to use a pull request if you'd like a gut-check and you're not in a rush.)

As example: Say you want to create a new shortlink pointing https://link.hypha.coop/my-shortlink to https://example.com/asfjaflnadsesljarmdkasdjasd. Just add a new line to shortlinks.csv with my-shortlink as the keyword and your complex URL as the destination_url.

Shortlinks are updated nightly as part of the update_shortlinks task in the hyphacoop/worker-coop-scripts repo. A manual update can also be run on-demand, which is helpful for testing.

Releases

No releases published

Packages

No packages published