Srikanth Lakshmanan wrote:
Sharing of URLs of non latin wiki's werent really easy and when copy
we get the unicode numerals in the URL like
So there came the idea of a mediawiki extension and
Shorturl extension was born by some really quick work by Yuvipanda
Looks good, although I'm not sure what the advantage in this case is
over using a page id.
Both have the same disadvantage:
* They are binding to a pageid instead of a pagename.
This means whenever the page is (un)deleted, moved, merged, split, or
becomes a redirect.
The link is longer correct.
I saw a different short-url service for en.wikipedia which also uses
numbers, but internally converts
to a page title.
In order words:
= > (pageid: 12, namespace:
1, title:Foobar) converted to 1
* shorturl/1 = > namespace:1, title:Foobar -> en.wikipedia.org/wiki/
This will always stay the same.
= > pageid: 12 converted to base64
* (page is re-created, moved, split, merged, whatever)
* shorturl/base64 => pageid: 12 => unknown page id, or perhaps
If the extension does not use the title, but the pageid, we might as
well really use the pageid:
base_convert ( 2810, 10, 36 ); )
Even shorter :-)