fix: canonical url

This commit is contained in:
2025-06-29 10:49:52 +02:00
parent 01d6c1e0f6
commit 32c90aecd3
2 changed files with 3 additions and 2 deletions

View File

@@ -1,5 +1,6 @@
{% extends "fellchensammlung/base.html" %}
{% load i18n %}
{% load custom_tags %}
{% block title %}
<title>{{ site_title }}</title>
@@ -14,7 +15,7 @@
{% block og_description %}
<meta name="og:description" content="{{ site_description }}">
{% endblock %}
{% block canonical_url %}{{ canonical_url }}{% endblock %}
{% block canonical_url %}{% host %}{{ canonical_url }}{% endblock %}

View File

@@ -178,7 +178,7 @@ def search_important_locations(request, important_location_slug):
site_title = _("Ratten in %(location_name)s") % {"location_name": i_location.name}
site_description = _("Ratten in Tierheimen und Rattenhilfen in der Nähe von %(location_name)s suchen.") % {"location_name": i_location.name}
canonical_url = reverse("search")
canonical_url = reverse("search-by-location", args=[i_location.slug])
context = {"adoption_notices": search.get_adoption_notices(),
"search_form": search.search_form,