From 3ed1529dae8bb58ef387cfd7f2b195dbd4680f8d Mon Sep 17 00:00:00 2001 From: bnznamco Date: Wed, 14 Sep 2022 19:38:43 +0200 Subject: [PATCH] fix: fixed alternates to take right request path --- djlotrek/context_processors.py | 2 +- djlotrek/utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/djlotrek/context_processors.py b/djlotrek/context_processors.py index 6707043..332537d 100644 --- a/djlotrek/context_processors.py +++ b/djlotrek/context_processors.py @@ -17,7 +17,7 @@ def settings(request): def alternate_seo_url(request): try: alternate_url = dict() - path = request.path + path = request.path_info url_parts = resolve(path) base_url = get_host_url(request) cur_language = get_language() diff --git a/djlotrek/utils.py b/djlotrek/utils.py index 08ad3d1..773bdc7 100644 --- a/djlotrek/utils.py +++ b/djlotrek/utils.py @@ -32,7 +32,7 @@ def order_dict_from_list(queue, key_order): def alternate_seo_url_with_object(request, obj_class, **kwargs): alternate_url = dict() - path = request.path + path = request.path_info url_parts = resolve(path) base_url = get_host_url(request) cur_language = get_language()