Use wfExpandUrl+PROTO_CANONICAL inside of getCanonicalURL instead of just prepending...