Commit 7df61e80 authored by Carl Schwan's avatar Carl Schwan 🚴

Fix canonical url

parent 59c8da23
Pipeline #25225 passed with stage
in 3 minutes and 20 seconds
......@@ -11,7 +11,7 @@ SPDX-License-Identifier: AGPL-3.0-or-later
<title>{% block title %}{% trans %}KDE's Applications{% endtrans %}{% endblock %}</title>
<meta name="description" content="{{ block('description') }}" />
<meta name="author" content="KDE Community" />
<link rel="canonical" href="{% block canonical %}{{ app.request.getSchemeAndHttpHost }}{% endblock %}" />
<link rel="canonical" href="{% block canonical %}{{ app.request.getSchemeAndHttpHost }}/applications{% endblock %}" />
<!-- Facebook open graph configuration -->
<meta property="og:title" content="{{ block('title') }}" />
......
......@@ -11,7 +11,7 @@ SPDX-License-Identifier: AGPL-3.0-or-later
{% block title %}{{ name }}{% endblock %}
{% block description %}{{ application.summary | l10n(locale) }}{% endblock %}
{% block image %}{% if application.screenshots | length > 0 %}{{ application.screenshots[0].sourceImage }}{% else %}https://kde.org/products/apps.png{% endif %}{% endblock %}
{% block canonical %}{{ app.request.getSchemeAndHttpHost ~ path('app_main_application_intl', {'_locale': locale, 'category': category, 'application': application.id}) }}{% endblock %}
{% block canonical %}{{ app.request.getSchemeAndHttpHost ~ "/applications" ~ path('app_main_application_intl', {'_locale': locale, 'category': category, 'application': application.id}) }}{% endblock %}
{% block body %}
<main itemscope itemtype="http://schema.org/SoftwareApplication">
......
......@@ -11,7 +11,7 @@ SPDX-License-Identifier: AGPL-3.0-or-later
{% block title %}{{ name }} - Developmnt information{% endblock %}
{% block description %}{{ application.summary | l10n(locale) }}{% endblock %}
{% block image %}{% if application.screenshots | length > 0 %}{{ application.screenshots[0].sourceImage }}{% else %}https://kde.org/products/apps.png{% endif %}{% endblock %}
{% block canonical %}{{ app.request.getSchemeAndHttpHost ~ path('app_main_application_dev_intl', {'_locale': locale, 'category': category, 'application': application.id}) }}{% endblock %}
{% block canonical %}{{ app.request.getSchemeAndHttpHost ~ "/applications" ~ path('app_main_application_dev_intl', {'_locale': locale, 'category': category, 'application': application.id}) }}{% endblock %}
{% block body %}
<main>
......
......@@ -9,7 +9,7 @@ SPDX-License-Identifier: AGPL-3.0-or-later
{% block title %}{{ category.name }}{% endblock %}
{% block description %}{% endblock %}
{% block image %}https://kde.org/products/apps.png{% endblock %}
{% block canonical %}{{ app.request.getSchemeAndHttpHost ~ "/" ~ path('app_main_category_intl', {'_locale': locale, 'category': category.name | lower }) }}{% endblock %}
{% block canonical %}{{ app.request.getSchemeAndHttpHost ~ "/applications" ~ path('app_main_category_intl', {'_locale': locale, 'category': category.name | lower }) }}{% endblock %}
{% block imageSize %}summary{% endblock %}
{% block body %}
......
......@@ -9,7 +9,7 @@ SPDX-License-Identifier: AGPL-3.0-or-later
{% block title %}{% trans %}KDE's Applications{% endtrans %}{% endblock %}
{% block description %}{% trans %}KDE is a community of friendly people who create over 200 apps which run on any Linux desktop, and often other platforms too. Here is the complete list.{% endtrans %}{% endblock %}
{% block image %}https://kde.org/products/apps.png{% endblock %}
{% block canonical %}{{ app.request.getSchemeAndHttpHost }}{% endblock %}
{% block canonical %}{{ app.request.getSchemeAndHttpHost }}/applications/{% endblock %}
{% block imageSize %}summary{% endblock %}
{% block body %}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment