Rewrite logic

Instead of doing logic off the current URL, we just grab the links that
are provided by the site itself.  If it's linking to a meta, we link to
meta, if it links to a main, we link to main.