Closed vipulnaik closed 3 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:
... or other_names regexp $donor
.What do you think?
@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.
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
)
I made a PR for easier review of changes, and have merged the PR. It's live now!
A few ideas:
former_name
toother_names
and allow a pipe-separated list of possibilities.other_names
column.