Feature: moving wikilink correction function to core.js and use it in redirects.js