Module:Section link: Difference between revisions

m
need to check that page exists before finding substrings
(more elegant fix for blank page names)
m (need to check that page exists before finding substrings)
Line 30:
 
-- Deal with blank page names elegantly
if page and not page:find('%S') then
page = nil
options.nopage = true