alabaster icon indicating copy to clipboard operation
alabaster copied to clipboard

support for <link rel="canonical"> not compatible with dirhtml builder

Open makhomed opened this issue 8 years ago • 0 comments

If I turn on canonical_url in config and use dirhtml builder, - Alabaster generates invalid urls.

url should be https://www.example.com/en/latest/tutorial/ but Alabaster generates https://www.example.com/en/latest/tutorial.html and this is lead to 404 errors.

bug probably here: alabaster/layout.html

  {% if theme_canonical_url %}
    <link rel="canonical" href="{{ theme_canonical_url }}{{ pagename }}.html"/>
  {% endif %}

makhomed avatar Nov 03 '17 22:11 makhomed