Skip to content

Commit 85e4ca7

Browse files
committed
fix permalinks for log entries
Special:Redirect/logid may not be correct sometimes, but the old one wasn't working anyway
1 parent 5432783 commit 85e4ca7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

main.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* DEep WiKi INspector (DEWKIN)
3-
* Copyright (C) 2013-2015 Ricordisamoa
3+
* Copyright (C) 2013-2016 Ricordisamoa
44
*
55
* https://meta.wikimedia.org/wiki/User:Ricordisamoa
66
* https://tools.wmflabs.org/ricordisamoa/
@@ -1572,7 +1572,8 @@ Inspector.prototype.mapRights = function ( logevt ) {
15721572
) ) );
15731573
}
15741574
return $( '<li>' ).html(
1575-
'<a href="' + this.wikipath + 'Special:Log/' + logevt.logid + '">' +
1575+
// Permalink requires commit 1b294bd3c538c874156d9f924200cbf659789dfb in MediaWiki core
1576+
'<a href="' + this.wikipath + 'Special:Redirect/logid/' + logevt.logid + '">' +
15761577
new Date( logevt.timestamp ).toLocaleString() +
15771578
'</a>' + this.i18n( 'colon-separator' ) + this.localizer.listToText( msg )
15781579
);

0 commit comments

Comments
 (0)