Modul:Redirect hatnote: Unterschied zwischen den Versionen
fix the Module:Redirect syntax (will require an update to that module first)
(fix the Module:Redirect syntax (will require an update to that module first)) |
|||
Zeile 155: | Zeile 155: | ||
else | else | ||
mRedirect = require('Module:Redirect') | mRedirect = require('Module:Redirect') | ||
local target = mRedirect. | local target = mRedirect.getTarget(redirectTitle) | ||
local targetTitle = getTitle(target) | local targetTitle = target and getTitle(target) | ||
if not mw.title.equals(targetTitle, titleObj) then | if targetTitle and not mw.title.equals(targetTitle, titleObj) then | ||
category = '[[Category:Invalid redirects]]' | category = '[[Category:Invalid redirects]]' | ||
end | end |