Skip to content

Commit

Permalink
Pass request into build_absolute_uri. This breaks with the call signa…
Browse files Browse the repository at this point in the history
…ture of Django's build_absolute_uri. Not sure how bad that is ...
  • Loading branch information
chazcb committed Feb 13, 2015
1 parent 8125235 commit 120c595
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion django_seo_js/middleware/hashbang.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def process_request(self, request):
if "_escaped_fragment_" not in request.GET:
return

url = self.backend.build_absolute_uri()
url = self.backend.build_absolute_uri(request)
try:
return self.backend.get_response_for_url(url)
except Exception as e:
Expand Down
2 changes: 1 addition & 1 deletion django_seo_js/middleware/useragent.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def process_request(self, request):
if not self.USER_AGENT_REGEX.match(request.META["HTTP_USER_AGENT"]):
return

url = self.backend.build_absolute_uri()
url = self.backend.build_absolute_uri(request)
try:
return self.backend.get_response_for_url(url)
except Exception as e:
Expand Down

0 comments on commit 120c595

Please sign in to comment.