diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-01-27 17:09:29 +0100 | 
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-01-27 17:09:29 +0100 | 
| commit | b2f3e5afc9524b2dace4c8cc5466365bf47b15eb (patch) | |
| tree | 8fb531d2e540432dc94ece6a66ea66d0bd50d15f | |
| parent | 45180c1f4f2e75b38b57d581f454b170ca68cfe1 (diff) | |
| download | Ishtar-b2f3e5afc9524b2dace4c8cc5466365bf47b15eb.tar.bz2 Ishtar-b2f3e5afc9524b2dace4c8cc5466365bf47b15eb.zip | |
get item: fix link generation for https
| -rw-r--r-- | ishtar_common/views_item.py | 5 | 
1 files changed, 2 insertions, 3 deletions
| diff --git a/ishtar_common/views_item.py b/ishtar_common/views_item.py index fbac512cd..8af79c6fa 100644 --- a/ishtar_common/views_item.py +++ b/ishtar_common/views_item.py @@ -319,9 +319,8 @@ def _get_values(request, val):          if callable(v):              v = v()          if hasattr(v, 'url'): -            v = request.is_secure() and \ -                'https' or 'http' + '://' + \ -                request.get_host() + v.url +            v = (request.is_secure() and +                 'https' or 'http') + '://' + request.get_host() + v.url          new_vals.append(v)      return new_vals | 
