-
Notifications
You must be signed in to change notification settings - Fork 13
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
redirect old language URL to language index page #11
Comments
So the idea is that the content for Aja (Benin) at http://phoible.org/languages/ajg would move to http://phoible.org/languages/ajab1235, and the old URL would redirect to the languages index page? I realize that in some cases one ISO 639-3 based URL may correspond to multiple new Glottocode-based URLs... so in that case is it possible for old ISO-based URLs to automatically return search results for that code? So if ISO code |
Redirecting to a page listing all languages mapped to a given ISO code should be possible. |
Great, thanks @xrotwang. @bambooforest any opinion here? |
I think this solution sounds good. |
Just tried to implement this redirection, but would like to avoid the intermediate page listing possible new matches for simplicity. This would mean the following ISO codes don't have a matching new language (the ones prefixed with
acceptable? |
ping @bambooforest |
@xrotwang we definitely updated some of the ISO codes given their changes |
So given that there are also changes, I'd say we can live with breaking 22 URLs - of pages which are not representing core data of PHOIBLE, but rather serve as navigation. |
breaking 22 URLs is OK with me, but note that some of these could be redirected (the ones where there is only one glottocode in PHOIBLE that matches the current ISO codes that replaced the missing one). Examples (not a complete list):
Others cannot be redirected easily, e.g.:
Is it worth it to go through the remaining ones one by one to determine if a single redirect target makes sense? (note: even if we do this, I'm viewing it as a deprecation cycle; those URLs should go dead after the next release) |
Yes, we can go through these one by hand. I'll leave the issue open. Once we've gone through the list, the glottocode we'd like to redirect to can go in this JSON - from where I can pick them up when running a DB update. |
If we switch to relating inventories to Glottolog languoids (dialects and languages), we must switch the vafriety identifiers to Glottocodes, thus breaking the old variety URLs. Since varieties have not been considered core resources of PHOIBLE Online, it seems best to redirect the old URLs to the languages index page, rather than returning HTTP 410 (which would be more semantically correct).
The text was updated successfully, but these errors were encountered: