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 | ca4f77317652c6bce113514e5dc069ba84311e6f (patch) | |
tree | 8fb531d2e540432dc94ece6a66ea66d0bd50d15f | |
parent | fbf251e26ed9769fb69d6698026fb832dab3062d (diff) | |
download | Ishtar-ca4f77317652c6bce113514e5dc069ba84311e6f.tar.bz2 Ishtar-ca4f77317652c6bce113514e5dc069ba84311e6f.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 |