Whitelist some params for canonical links. Fixes #4374