fix: canonical url
This commit is contained in:
@@ -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 %}
|
||||
|
||||
|
||||
|
||||
|
@@ -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,
|
||||
|
Reference in New Issue
Block a user