Do not replace the canonical url on doc building

Closes #5111