Fixed canonical URL issue when advanced SEF is enabled.