Handle / & /wiki & /wiki/ URLs

https://wikia-inc.atlassian.net/browse/HG-438

It probably needs some beautyfing and I could use your suggestions.
Can we get a jsdoc style comment for this function