Project

General

Profile

Actions

Task #1622

open

Short Links for wiki (tdf.io)

Added by Dennis Roczek over 8 years ago. Updated over 8 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Webserver
Target version:
-
Start date:
Due date:
% Done:

0%

Tags:

Description

Can we get a shortlink "generator" for the wiki?

Like:
tdf.io/w/ARTICLENAME
-->
wiki.documentfoundation.org/ARTICLENAME

But also
tdf.io/w/index.php?diff=118461&oldid=118460
-->
https://wiki.documentfoundation.org/index.php?diff=118461&oldid=118460

?!?

Actions #1

Updated by Adolfo Jayme Barrientos over 8 years ago

A solution could be these MediaWiki extension: https://www.mediawiki.org/wiki/Extension:ShortUrl (as used in, e.g., the Hindi Wikipedia) and https://www.mediawiki.org/wiki/Extension:Surl.

Actions #2

Updated by Florian Effenberger over 8 years ago

Not sure if this works with YOURLS - actually I think it doesn't, but asking Alex for feedback

Actions #3

Updated by Dennis Roczek over 8 years ago

Florian Effenberger wrote:

Not sure if this works with YOURLS - actually I think it doesn't, but asking Alex for feedback

Well it would be a simple rewrite_rule, or?

Actions #4

Updated by Dennis Roczek over 8 years ago

Adolfo Jayme Barrientos wrote:

A solution could be these MediaWiki extension: https://www.mediawiki.org/wiki/Extension:ShortUrl (as used in, e.g., the Hindi Wikipedia) and https://www.mediawiki.org/wiki/Extension:Surl.

I thought on that too, but at the end it is a bit senseless: https://wiki.documentounfation.org/Special:ShortUrl/3tev5m is not realy shorter than https://wiki.documentounfation.org/Translating_LibreOffice (base36 code is only an example)

the whole domain is too long. In combination at the end (so like using https://tdf.io/w/3tev5m ) might be very useful. ;-)

Actions #5

Updated by Florian Effenberger over 8 years ago

I don't know how YOURLS works internally, whether a manual RewriteRule
would break things

Can you talk to Alex so we find out?

The Document Foundation Redmine wrote on 2015-11-30 at 12:28:

Well it would be a simple rewrite_rule, or?

Actions #6

Updated by Florian Effenberger over 8 years ago

An alternative would be something like wiki.tdf.io/ShortUrl in a second
YOURLS instance (or RewriteRule, as subdomain is distinctive enough)

Actions

Also available in: Atom PDF