RM overzealous redirect check

This commit removes the redirect if-else statement, as it did not add any more functionality that
getCanonicalURL doesn't already provide. Furthermore, escapeCanonicalURL is now used in place of
htmlspecialchars( ...->getCanonicalURL ) since that function already escapes the canonical URL in
advance.