Skip to content

Commit

Permalink
fix: fixed alternates to take right request path
Browse files Browse the repository at this point in the history
  • Loading branch information
bnznamco committed Sep 14, 2022
1 parent 9278060 commit 3ed1529
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion djlotrek/context_processors.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion djlotrek/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 3ed1529

Please sign in to comment.