fix to format of canonical url generation