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:
parent
b57c97215b
commit
2a9fa234a1
1 changed files with 5 additions and 1 deletions
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue