How To Fix Duplicated Content For SEO Improvement?

Written By Emil Hajric (Super Administrator)

Updated at May 20th, 2020

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 category.name != 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?