Show More
@@ -319,7 +319,7 b' def includeme_first(config):' | |||||
319 | # redirect automatic browser favicon.ico requests to correct place |
|
319 | # redirect automatic browser favicon.ico requests to correct place | |
320 | def favicon_redirect(context, request): |
|
320 | def favicon_redirect(context, request): | |
321 | return redirect( |
|
321 | return redirect( | |
322 |
request.static_ |
|
322 | request.static_path('rhodecode:public/images/favicon.ico')) | |
323 |
|
323 | |||
324 | config.add_view(favicon_redirect, route_name='favicon') |
|
324 | config.add_view(favicon_redirect, route_name='favicon') | |
325 | config.add_route('favicon', '/favicon.ico') |
|
325 | config.add_route('favicon', '/favicon.ico') |
@@ -121,7 +121,7 b' def asset(path, ver=None):' | |||||
121 | query = {} |
|
121 | query = {} | |
122 | if ver: |
|
122 | if ver: | |
123 | query = {'ver': ver} |
|
123 | query = {'ver': ver} | |
124 |
return request.static_ |
|
124 | return request.static_path( | |
125 | 'rhodecode:public/{}'.format(path), _query=query) |
|
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