File tree 1 file changed +12
-5
lines changed
1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change 11
11
12
12
< link rel ="canonical " href ="<%= meta_tags . canonical_url %> ">
13
13
<% if config [ :tech_docs ] [ :show_govuk_logo ] %>
14
- < link rel ="icon " sizes ="48x48 " href ="/assets/govuk/assets/images/favicon.ico ">
15
- < link rel ="icon " sizes ="any " href ="/assets/govuk/assets/images/favicon.svg " type ="image/svg+xml ">
16
- < link rel ="mask-icon " href ="/assets/govuk/assets/images/govuk-icon-mask.svg " color ="#0b0c0c ">
17
- < link rel ="apple-touch-icon " href ="/assets/govuk/assets/images/govuk-icon-180.png ">
18
- < link rel ="manifest " href ="/assets/govuk/assets/manifest.json ">
14
+ <%
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 += "/"
19
+ end
20
+ %>
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/images/manifest.json ">
19
26
<% else %>
20
27
< link rel ="icon " sizes ="48x48 " href ="/images/favicon.ico ">
21
28
< 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