Module:Redirect/sandbox: Difference between revisions

Content deleted Content added
Jackmcbarn (talk | contribs)
return a canonical output name any time the name is valid, even if it's not a redirect
Undid revision 608825255 by Jackmcbarn (talk) this part is handled by p._main, and it's more useful to other Lua functions if p.getTarget returns nil if there was a problem finding the target
Line 33:
), 2)
end
if not titleObj or not titleObj.isRedirect then
return nil
elseif not titleObj.isRedirect then
return titleObj.prefixedText
end