Project

General

Profile

Task #1622

Short Links for wiki (tdf.io)

Added by Dennis Roczek about 2 years ago. Updated about 2 years ago.

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

0%

Estimated time:
Tags:
URL:

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

?!?

History

#1 Updated by Adolfo Jayme Barrientos about 2 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.

#2 Updated by Florian Effenberger about 2 years ago

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

#3 Updated by Dennis Roczek about 2 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?

#4 Updated by Dennis Roczek about 2 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. ;-)

#5 Updated by Florian Effenberger about 2 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?

#6 Updated by Florian Effenberger about 2 years ago

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

Also available in: Atom PDF