# HG changeset patch # User Daniel Dourvaris # Date 2016-08-08 15:12:55 # Node ID a8687552d391e1fc9bb85ab8e9af0578a60b2cee # Parent ffa50597a2861b9ee5176e69cd50ef640b8cec8b static: use static_path instead of static_url to account for http vs https diff --git a/rhodecode/config/middleware.py b/rhodecode/config/middleware.py --- a/rhodecode/config/middleware.py +++ b/rhodecode/config/middleware.py @@ -319,7 +319,7 @@ def includeme_first(config): # redirect automatic browser favicon.ico requests to correct place def favicon_redirect(context, request): return redirect( - request.static_url('rhodecode:public/images/favicon.ico')) + request.static_path('rhodecode:public/images/favicon.ico')) config.add_view(favicon_redirect, route_name='favicon') config.add_route('favicon', '/favicon.ico') diff --git a/rhodecode/lib/helpers.py b/rhodecode/lib/helpers.py --- a/rhodecode/lib/helpers.py +++ b/rhodecode/lib/helpers.py @@ -121,7 +121,7 @@ def asset(path, ver=None): query = {} if ver: query = {'ver': ver} - return request.static_url( + return request.static_path( 'rhodecode:public/{}'.format(path), _query=query)