Sergiu Dumitriu wrote:
1. We can add a new table, xwikiredirects, which holds
redirect URLs.
2. We add document.getRedirects() (maybe both ways, from and to)
3. We need can change docdoesnotexist.vm to check for redirects.
That would be great. Or, you can take slightly different approach:
Use two tables:
* "dictionary"
* "document" (this is existing table).
In "dictionary" table, store all possible names for document. It could
be used for
* renaming
* synonyms.
Same document can have multiple names, e.g. "IP" and "Internet
Protocol". Both entries in dictionary point to the same entry in documents.
If document is renamed, create new entry and add put its name in the
redirect field of the original entry. Original entry becomes deprecated,
but it is still working.
Optionally, update all old links.
Optionally, garbage collect old synonyms.
You should probably do this after 1.0