Fix rel="canonical" links (#22132)

Particularly, this now appropriately indicates Akka HTTP documentation.

In both cases it no longer points to a destination with status code 404.
This commit is contained in:
Adam Voss 2017-01-24 05:49:58 -06:00 committed by Johan Andrén
parent b57c97215b
commit 2a9fa234a1

View file

@ -26,7 +26,11 @@
{% block extrahead %}
{%- if include_analytics %}
<!-- Hint to search engines that the "canonical" page is under "current", which will boost it appearing in search results -->
<link rel="canonical" href="http://akka.io/docs/akka/current/{{ pagename }}.html" />
{% if "scala/http" in pagename or "java/http" in pagename %}
<link rel="canonical" href="http://doc.akka.io/docs/akka-http/current/{{ pagename }}.html" />
{% else %}
<link rel="canonical" href="http://doc.akka.io/docs/akka/current/{{ pagename }}.html" />
{% endif %}
<!--Google Analytics-->
<script type="text/javascript">