How to fix duplicated content for SEO improvement?


Written By Emil Hajric (Super Administrator)

Updated at January 29th, 2018

If you want to improve SEO ranking by fixing duplicated content warnings, you can use the following code inside your HEAD tag on the KB Template‍:

{% if on_index_page %}
<link rel="canonical" href="https://ADDRESS" />
{% elsif on_show_question_page %}
<link rel="canonical" href="https://ADDRESS{{ question.url }}" />
{% elsif on_contact_us_page %}
<link rel="canonical" href="https://ADDRESS/contact-us" />
{% elsif != null %}
<link rel="canonical" href="https://ADDRESS{{ category.url }}" />
{% else %}
<link rel="canonical" href="https://ADDRESS/thanks" />
{% endif %}

Note: Replace ADDRESS with your helpjuice subdomain or custom domain.

Was this article helpful?