File tree Expand file tree Collapse file tree 1 file changed +13
-9
lines changed
Expand file tree Collapse file tree 1 file changed +13
-9
lines changed Original file line number Diff line number Diff line change 1212 < link rel ="canonical " href ="<%= meta_tags . canonical_url %> ">
1313 <% if config [ :tech_docs ] [ :show_govuk_logo ] %>
1414 <%
15- service_link = config [ :tech_docs ] [ :service_link ] || '/'
16- # ensure service_link ends with a trailing '/'
17- if service_link [ -1 , 1 ] != '/'
18- service_link += '/'
15+ if development?
16+ path_prefix = '/'
17+ else
18+ path_prefix = config [ :tech_docs ] [ :service_link ] || '/'
19+ # ensure service_link ends with a trailing '/'
20+ if path_prefix [ -1 , 1 ] != '/'
21+ path_prefix += '/'
22+ end
1923 end
2024 %>
21- < link rel ="icon " sizes ="48x48 " href ="<%= service_link %> assets/govuk/assets/images/favicon.ico ">
22- < link rel ="icon " sizes ="any " href ="<%= service_link %> assets/govuk/assets/images/favicon.svg " type ="image/svg+xml ">
23- < link rel ="mask-icon " href ="<%= service_link %> assets/govuk/assets/images/govuk-icon-mask.svg " color ="#0b0c0c ">
24- < link rel ="apple-touch-icon " href ="<%= service_link %> assets/govuk/assets/images/govuk-icon-180.png ">
25- < link rel ="manifest " href ="<%= service_link %> assets/govuk/assets/manifest.json ">
25+ < link rel ="icon " sizes ="48x48 " href ="<%= path_prefix %> assets/govuk/assets/images/favicon.ico ">
26+ < link rel ="icon " sizes ="any " href ="<%= path_prefix %> assets/govuk/assets/images/favicon.svg " type ="image/svg+xml ">
27+ < link rel ="mask-icon " href ="<%= path_prefix %> assets/govuk/assets/images/govuk-icon-mask.svg " color ="#0b0c0c ">
28+ < link rel ="apple-touch-icon " href ="<%= path_prefix %> assets/govuk/assets/images/govuk-icon-180.png ">
29+ < link rel ="manifest " href ="<%= path_prefix %> assets/govuk/assets/manifest.json ">
2630 <% else %>
2731 < link rel ="icon " sizes ="48x48 " href ="/images/favicon.ico ">
2832 < link rel ="icon " sizes ="any " href ="/images/favicon.svg " type ="image/svg+xml ">
You can’t perform that action at this time.
0 commit comments