From 0aafb3388799ec182d6dab6c692d543b63c64260 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Wed, 24 Jun 2015 12:15:58 +0200 Subject: [PATCH] Return only absolute URIs in services.json (fixes #7673) --- src/authentic2_pratic/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/authentic2_pratic/views.py b/src/authentic2_pratic/views.py index adc5f7b..2ac91e9 100644 --- a/src/authentic2_pratic/views.py +++ b/src/authentic2_pratic/views.py @@ -443,7 +443,7 @@ def agent_homepage_jsonp(request): data = [] for name, url, slug, needed_authent in service_links: data.append({ - 'url': url, + 'url': request.build_absolute_uri(url), 'label': name, 'authentication_level_is_enough': not bool(needed_authent), 'authentication_levels': filter(None, needed_authent.split(', ')),