##// END OF EJS Templates
static: use static_path instead of static_url to account for http vs https
dan -
r577:a8687552 default
parent child Browse files
Show More
@@ -319,7 +319,7 b' def includeme_first(config):'
319 319 # redirect automatic browser favicon.ico requests to correct place
320 320 def favicon_redirect(context, request):
321 321 return redirect(
322 request.static_url('rhodecode:public/images/favicon.ico'))
322 request.static_path('rhodecode:public/images/favicon.ico'))
323 323
324 324 config.add_view(favicon_redirect, route_name='favicon')
325 325 config.add_route('favicon', '/favicon.ico')
@@ -121,7 +121,7 b' def asset(path, ver=None):'
121 121 query = {}
122 122 if ver:
123 123 query = {'ver': ver}
124 return request.static_url(
124 return request.static_path(
125 125 'rhodecode:public/{}'.format(path), _query=query)
126 126
127 127
General Comments 0
You need to be logged in to leave comments. Login now