Support dirhtml in the canonical snippet.