vipulnaik / donations

Donations list website (DLW): a repository for keeping track of public donations by some people I (arbitrarily) decide to track
https://donations.vipulnaik.com
Creative Commons Zero v1.0 Universal
20 stars 2 forks source link

Improve the way we deal with renamings for donors and donees #128

Closed vipulnaik closed 3 years ago

vipulnaik commented 4 years ago

A few ideas:

riceissa commented 4 years ago

Serving in multiple locations vs redirecting: I think I prefer redirecting, mainly so there's a canonical location, and to fit in with how existing sites like Wikipedia work. e.g. if someone goes to https://donations.vipulnaik.com/donor.php?donor=Open+Philanthropy+Project it should redirect to https://donations.vipulnaik.com/donor.php?donor=Open+Philanthropy rather than serving at the old location.

On the implementation:

What do you think?

vipulnaik commented 4 years ago

@riceissa I agree that redirecting is the better option. Thanks for explaining.

Outer redirection layer sounds good, if you have a clear idea of how to pull it off.

riceissa commented 4 years ago

Ok, I think this is working.

https://github.com/vipulnaik/donations/tree/better-renamings

You can try with e.g. /donee.php?donee=Singularity Institute for Artificial Intelligence (note: Open Phil will not work as a test case because we still haven't filled in an other_names for it)

FYI this actually allows us to use "short URLs", e.g. /donee.php?donee=MIRI if we ever want to (it will just require adding |MIRI to other_names)

vipulnaik commented 3 years ago

I made a PR for easier review of changes, and have merged the PR. It's live now!