govuk_publishing_components 58.0.0 → 58.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 48c542a97d1c246e78fa83d9fe739ac8674e68da836e806e1ab1aa173230f356
4
- data.tar.gz: ab7946df00c00267c0db586dfdd1d707ad5d827539b8575a4e7cebc2174723a2
3
+ metadata.gz: d82f0a7a1e3c345f7d84859133afe0bb1df1e6561663f4c5937b411cbede75cb
4
+ data.tar.gz: 80fe207fb320c15fcb156ebebc3fa66d8c3b452b52fb5d436acec39065840d84
5
5
  SHA512:
6
- metadata.gz: 586c0fc47305fb62557af42ea131f09ce896064ad01de710cb68d64dbe6ecaefa18ce9a2f0bf4ec08d2e135f88cbfc3f518e96a1927834b82625079d1f297fc9
7
- data.tar.gz: 484f92e3c855da7e83d18505364617b28a53261fd6d13f9e9b26adc6e9f6f8623117d8044818047aed4f21ce965c696c74903655cea49c0252ae1054aac7cc99
6
+ metadata.gz: 70f839bf58c4d8d06037a121875656558f9badc69a322b2886946a94f541040d7db7252904733bc852797691442c9d18fdac1d102737d5369688cbbdf248ef65
7
+ data.tar.gz: c0e347b5a6d110077c68a41af3a05aef428a4329a5a6ea422ce94c7ea4d6b94fc8e0b2d59f23239608e5662db11b7d5faba456422e0c6ee4b14f9cf9d2d4e8e4
@@ -33,7 +33,9 @@
33
33
  length: this.undefined,
34
34
  video_percent: this.undefined,
35
35
  autocomplete_input: this.undefined,
36
- autocomplete_suggestions: this.undefined
36
+ autocomplete_suggestions: this.undefined,
37
+ content_id: this.undefined,
38
+ user_id: this.undefined
37
39
  }
38
40
  }
39
41
  }
@@ -7,6 +7,8 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
7
7
  this.disableGa4 = this.module.dataset.disableGa4
8
8
  this.emptyFieldset = undefined
9
9
  this.addAnotherButton = undefined
10
+ this.startIndex = Number(this.module.dataset.ga4StartIndex) || 1
11
+ this.indexSectionCount = Number(this.module.dataset.ga4IndexSectionCount)
10
12
  }
11
13
 
12
14
  function createButton (textContent, additionalClass = '', dataAttributes = {}) {
@@ -105,8 +107,8 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
105
107
  var trackedRemoveButton = field.parentNode.querySelector('.js-add-another__remove-button[data-ga4-event]')
106
108
 
107
109
  if (trackedRemoveButton) {
108
- trackedRemoveButton.dataset.indexSection = index
109
- trackedRemoveButton.dataset.indexSectionCount = visibleFields.length + 1
110
+ trackedRemoveButton.dataset.indexSection = this.startIndex + index
111
+ trackedRemoveButton.dataset.indexSectionCount = this.indexSectionCount || visibleFields.length
110
112
  }
111
113
  }.bind(this))
112
114
 
@@ -120,8 +122,8 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
120
122
  var trackedAddAnotherButton = this.module.querySelector('.js-add-another__add-button[data-ga4-event]')
121
123
 
122
124
  if (trackedAddAnotherButton) {
123
- trackedAddAnotherButton.dataset.indexSection = visibleFields.length
124
- trackedAddAnotherButton.dataset.indexSectionCount = visibleFields.length + 1
125
+ trackedAddAnotherButton.dataset.indexSection = this.indexSectionCount || visibleFields.length
126
+ trackedAddAnotherButton.dataset.indexSectionCount = this.indexSectionCount || visibleFields.length
125
127
  }
126
128
  }
127
129
 
@@ -21,6 +21,16 @@
21
21
  position: relative;
22
22
  @include govuk-clearfix;
23
23
 
24
+ ul {
25
+ list-style-type: none;
26
+ margin: 0;
27
+ padding: 0;
28
+
29
+ li {
30
+ margin-bottom: govuk-spacing(1);
31
+ }
32
+ }
33
+
24
34
  .content {
25
35
  float: none;
26
36
  width: 100%;
@@ -11,6 +11,7 @@
11
11
  component_helper.add_class("gem-c-add-another")
12
12
  component_helper.add_data_attribute({
13
13
  module: "add-another",
14
+ ga4_start_index: 3,
14
15
  add_button_text:,
15
16
  fieldset_legend:,
16
17
  empty_fields:,
@@ -15,8 +15,7 @@
15
15
  end
16
16
  text = raw(text)
17
17
 
18
- absolute_links_helper = GovukPublishingComponents::Presenters::AbsoluteLinksHelper.new()
19
- cookie_preferences_href ||= absolute_links_helper.make_url_absolute("/help/cookies")
18
+ cookie_preferences_href ||= "/help/cookies"
20
19
  confirmation_message ||= raw(t("components.cookie_banner.confirmation_message.html",
21
20
  link: link_to(
22
21
  t("components.cookie_banner.confirmation_message.link"),
@@ -8,6 +8,7 @@
8
8
  value ||= nil
9
9
  accept ||= nil
10
10
  data ||= nil
11
+ multiple ||= nil
11
12
 
12
13
  label ||= nil
13
14
  hint ||= nil
@@ -75,6 +76,7 @@
75
76
  id: id,
76
77
  data: data,
77
78
  accept: accept,
79
+ multiple: multiple,
78
80
  aria: {
79
81
  describedby: aria_described_by
80
82
  } %>
@@ -5,7 +5,6 @@
5
5
  navigation ||= []
6
6
  hide_licence ||= false
7
7
  layout_footer_helper = GovukPublishingComponents::Presenters::LayoutFooterHelper.new(navigation, meta)
8
- absolute_links_helper = GovukPublishingComponents::Presenters::AbsoluteLinksHelper.new()
9
8
 
10
9
  component_helper = GovukPublishingComponents::Presenters::ComponentWrapperHelper.new(local_assigns)
11
10
  component_helper.add_class("gem-c-layout-footer govuk-footer")
@@ -73,10 +72,8 @@
73
72
  unless attributes[:data][:ga4_link]
74
73
  attributes[:data][:ga4_link] = layout_footer_helper.generate_ga4_link_attribute(index, ga4_section_index, section[:title], index_total)
75
74
  end
76
-
77
- href = absolute_links_helper.make_url_absolute(item[:href])
78
75
  %>
79
- <%= link_to item[:text], href, attributes %>
76
+ <%= link_to item[:text], item[:href], attributes %>
80
77
  </li>
81
78
  <% end %>
82
79
  <% end %>
@@ -106,10 +103,8 @@
106
103
  unless attributes[:data][:ga4_link]
107
104
  attributes[:data][:ga4_link] = layout_footer_helper.generate_ga4_link_attribute(index, navigation.length, "Support links", index_total)
108
105
  end
109
-
110
- href = absolute_links_helper.make_url_absolute(item[:href])
111
106
  %>
112
- <%= link_to item[:text], href, attributes %>
107
+ <%= link_to item[:text], item[:href], attributes %>
113
108
  </li>
114
109
  <% end %>
115
110
  </ul>
@@ -37,8 +37,6 @@
37
37
 
38
38
  dropdown_menu_classes = %w(gem-c-layout-super-navigation-header__navigation-dropdown-menu)
39
39
 
40
- absolute_links_helper = GovukPublishingComponents::Presenters::AbsoluteLinksHelper.new()
41
-
42
40
  component_helper = GovukPublishingComponents::Presenters::ComponentWrapperHelper.new(local_assigns)
43
41
  component_helper.add_class("gem-c-layout-super-navigation-header")
44
42
  component_helper.add_data_attribute({ module: "ga4-event-tracker ga4-link-tracker", ga4_expandable: "" })
@@ -223,10 +221,9 @@
223
221
  has_description = item[:description].present?
224
222
  link_classes = %w[govuk-link gem-c-layout-super-navigation-header__navigation-second-item-link]
225
223
  link_classes << "gem-c-layout-super-navigation-header__navigation-second-item-link--with-description" if has_description
226
- link_href = absolute_links_helper.make_url_absolute(item[:href])
227
224
  %>
228
225
  <li class="gem-c-layout-super-navigation-header__dropdown-list-item">
229
- <%= link_to item[:label], link_href, {
226
+ <%= link_to item[:label], item[:href], {
230
227
  class: link_classes,
231
228
  data: {
232
229
  ga4_link: {
@@ -272,7 +269,7 @@
272
269
  ga4_search_index_section: 3,
273
270
  ga4_search_index_section_count: 3,
274
271
  },
275
- action: absolute_links_helper.make_url_absolute("/search/all"),
272
+ action: "/search/all",
276
273
  method: "get",
277
274
  role: "search",
278
275
  aria: {
@@ -65,3 +65,9 @@ examples:
65
65
  name: "name"
66
66
  heading_level: 1
67
67
  heading_size: "l"
68
+ with_multiple:
69
+ data:
70
+ label:
71
+ text: "Upload a file"
72
+ name: "file-upload"
73
+ multiple: true
@@ -528,6 +528,20 @@ examples:
528
528
  </div>
529
529
  </div>
530
530
  </div>
531
+ contact_with_embedded_list:
532
+ data:
533
+ block: |
534
+ <div class="contact" id="contact_1017">
535
+ <div class="content">
536
+ <div class="vcard contact-inner">
537
+ <p>Media enquiries</p>
538
+ <ul>
539
+ <li>Press enquiries: 020 7XXX XXXX</li>
540
+ <li>Out of hours: 020 7XXX XXXX</li>
541
+ </ul>
542
+ </div>
543
+ </div>
544
+ </div>
531
545
  charts:
532
546
  description: |
533
547
  The Government Statistical Service (GSS) guidance recommends [a limit of four categories as best practice for basic data visualisations](https://gss.civilservice.gov.uk/policy-store/data-visualisation-colours-in-charts/#section-5).
@@ -1,8 +1,4 @@
1
- <%
2
- absolute_links_helper = GovukPublishingComponents::Presenters::AbsoluteLinksHelper.new()
3
- %>
4
-
5
- <form action="<%= absolute_links_helper.make_url_absolute('/contact/govuk/problem_reports') %>"
1
+ <form action="/contact/govuk/problem_reports"
6
2
  id="something-is-wrong"
7
3
  class="gem-c-feedback__form js-feedback-form"
8
4
  method="post"
@@ -0,0 +1,240 @@
1
+ ky:
2
+ common:
3
+ hide: Жашыруу
4
+ show: Көрсөтүү
5
+ toggle_less: Азыраак көрсөтүү
6
+ toggle_more: "%{show} %{number} көбүрөөк"
7
+ translations: Которуулар
8
+ components:
9
+ accordion:
10
+ hide_all: Бардык бөлүмдөрдү жашыруу
11
+ show_all: Бардык бөлүмдөрдү көрсөтүү
12
+ this_section_visually_hidden: " бул тандоо"
13
+ article_schema:
14
+ scoped_search_description: "%{title} ичинде издөө"
15
+ attachment:
16
+ opendocument_html: Бул файл "OpenDocument" форматында
17
+ order_a_copy: Копиясына буйрутма берүү
18
+ page:
19
+ one: 1 барак
20
+ other: "%{count} барак"
21
+ preview_aria_label: "%{title} онлайн көрүү"
22
+ preview_link: Онлайн көрүү
23
+ reference: "Маал.: %{reference}"
24
+ request_format_cta: Жеткиликтүү форматты сураңыз.
25
+ request_format_details_html: Эгер сиз жардамчы технологияны (мисалы, экранды
26
+ окугуч) колдонсоңуз жана бул документтин жеткиликтүү форматтагы версиясы керек
27
+ болсо, <a href='mailto:%{alternative_format_contact_email}' target='_blank'
28
+ class='govuk-link'>%{alternative_format_contact_email}</a> электрондук кат
29
+ жөнөтүңүз. Сизге кандай формат керек экенин айтыңыз. Кандай жардамчы технологияны
30
+ колдонуп жатканыңызды айтсаңыз, бул бизге жардам берет.
31
+ request_format_text: Бул файл жардамчы технологияны колдонуучулар үчүн ылайыктуу
32
+ эмес.
33
+ back_link:
34
+ back: Артка
35
+ character_count:
36
+ body: "%{number} %{type} чейин киргизе аласыз"
37
+ type:
38
+ characters: белги
39
+ words: сөз
40
+ chart:
41
+ accessibility_heading: '"%{chart_heading}" үчүн дайындар таблицасы'
42
+ accessibility_html: Бул диаграмма таблицада болгон дайындардын визуалдык көрүнүшү.
43
+ accessibility_link: '"%{chart_heading}" дайындар таблицасына өтүү'
44
+ table_dropdown: Дайындарды таблица катары көрүү
45
+ chat_entry:
46
+ description: GOV.UK жаңы AI куралы менен бизнес суроолоруңузга тез, ылайыкташтырылган
47
+ жоопторду алыңыз
48
+ heading: GOV.UK чатынан сураңыз
49
+ checkboxes:
50
+ or: же
51
+ contents_list:
52
+ contents: Мазмуну
53
+ contextual_sidebar:
54
+ pretitle: Ошондой эле бир бөлүгү
55
+ cookie_banner:
56
+ buttons:
57
+ accept_cookies: Кошумча кукилерди кабыл алуу
58
+ reject_cookies: Кошумча кукилерди четке кагуу
59
+ view_cookies: Кукилерди көрүү
60
+ confirmation_message:
61
+ accepted: Сиз кошумча кукилерди кабыл алдыңыз
62
+ html: Сиз каалаган убакта %{link}.
63
+ link: куки жөндөөлөрүңүздү өзгөртүү
64
+ rejected: Сиз кошумча кукилерди четке кагыңыз
65
+ hide: Бул билдирүүнү жашыруу
66
+ text: '["Биз GOV.UK кантип колдонгонуңузду түшүнүү, жөндөөлөрүңүздү эстеп калуу
67
+ жана мамлекеттик кызматтарды жакшыртуу үчүн кошумча кукилерди орноткубуз келет.",
68
+ "Ошондой эле биз башка сайттар орноткон кукилерди алардын кызматтарынан мазмунду
69
+ жеткирүүгө жардам берүү үчүн колдонобуз."]'
70
+ title: GOV.UK’де кукилер
71
+ devolved_nations:
72
+ applies_to: Буга колдонулат
73
+ england:
74
+ end: " жана Англия"
75
+ middle: ", Англия"
76
+ start: Англия
77
+ northern_ireland:
78
+ end: " жана Түндүк Ирландия"
79
+ middle: ", Түндүк Ирландия"
80
+ start: Түндүк Ирландия
81
+ scotland:
82
+ end: " жана Шотландия"
83
+ middle: ", Шотландия"
84
+ start: Шотландия
85
+ type:
86
+ consultation: "%{nation} үчүн консультация"
87
+ detailed_guide: "%{nation} үчүн жетекчилик"
88
+ guidance: "%{nation} үчүн жетекчилик"
89
+ publication: "%{nation} үчүн жарыялоо"
90
+ wales:
91
+ end: " жана Уэльс"
92
+ middle: ", Уэльс"
93
+ start: Уэльс
94
+ feedback:
95
+ close: Жокко чыгаруу
96
+ dont_include_personal_info: Улуттук камсыздандыруу номериңиз же кредиттик картанын
97
+ чоо-жайы сыяктуу жеке же каржылык маалыматты камтыбаңыз.
98
+ email_address: Электрондук почта дареги
99
+ help_us_improve_govuk: Бизге GOV.UK жаңыртууга жардам бериңиз
100
+ is_not_useful: бул баракча пайдалуу эмес
101
+ is_this_page_useful: Бул баракча пайдалуубу?
102
+ is_useful: бул баракча пайдалуу
103
+ maybe: Болушу мүмкүн
104
+ more_about_visit: GOV.UK'ти жакшыртууга жардам берүү үчүн, бүгүнкү иш сапарыңыз
105
+ тууралуу көбүрөөк билгибиз келет.
106
+ "no": Жок
107
+ send: Жөнөтүү
108
+ send_me_survey: Мага сурамжылоону жөнөтүңүз
109
+ something_wrong: Бул баракчада көйгөй боюнча отчет бериңиз
110
+ thank_you_for_feedback: Пикириңиз үчүн рахмат
111
+ what_doing: Эмне кылып жаттыңыз эле?
112
+ what_wrong: Эммне туура эмес кетти?
113
+ "yes": Ооба
114
+ intervention:
115
+ accessible_link_text_suffix: " (жаңы таблицада ачат)"
116
+ layout_footer:
117
+ copyright_html: Crown copyright
118
+ licence_html: Эгер башкачасы каралбаса, бардык мазмун "Ачык Өкмөт Лицензиясынын"
119
+ алкагында жеткиликтүү.
120
+ support_links: Колдоо байланыштары
121
+ layout_for_public:
122
+ account_layout:
123
+ feedback:
124
+ banners:
125
+ phase_banner_html: Бул жаңы кызмат, сиздин "пикириңиз" аны жакшыртууга
126
+ жардам берет.
127
+ navigation:
128
+ menu_bar:
129
+ account:
130
+ link_text: Сиздин GOV.UK Бир логиниңиз
131
+ manage:
132
+ link_text: Жөндөөлөр
133
+ layout_header:
134
+ hide_button: Издөөнү жашыруу
135
+ menu: Меню
136
+ search_button: GOV.UK издөө
137
+ show_button: Издөөнү көрсөтүү
138
+ top_level: Жогорку деңгээл
139
+ layout_super_navigation_header:
140
+ logo_link_title: GOV.UK башкы баракчасына барыңыз
141
+ logo_text: GOV.UK
142
+ menu_toggle_label:
143
+ hide: "%{label} менюсун жашыруу"
144
+ show: "%{label} менюсун көрсөтүү"
145
+ navigation_link:
146
+ label: Меню
147
+ navigation_menu_heading: Навигация менюсу
148
+ navigation_search_heading: Издөө жана белгилүү баракчалар
149
+ navigation_search_subheading: Издөө
150
+ search_text: GOV.UK издөө
151
+ metadata:
152
+ and: жана
153
+ from: Мурун
154
+ history: Тарых
155
+ last_updated: Акыркы жолу жаңыртылды
156
+ part_of: Бөлүгү
157
+ published: Жарыяланды
158
+ see_all_updates: Бардык жаңыртууларды көрүү
159
+ modal_dialogue:
160
+ close_modal: Модалдык диалогду жабуу
161
+ notice:
162
+ banner_title: Маанилүү
163
+ option_select:
164
+ found_multiple: табылган параметрлер
165
+ found_single: табылган параметр
166
+ selected: тандалган
167
+ organisation_schema:
168
+ all_content_search_description: "%{organisation} бардык мазмунду табыңыз"
169
+ password_input:
170
+ button: Көрсөтүү
171
+ button_aria_hide_label: Сырсөздү жашыруу
172
+ button_aria_label: Сырсөздү көрсөтүү
173
+ button_hide: Жашыруу
174
+ error_text_prefix: Ката
175
+ label: Сырсөз
176
+ password_hidden_announcement: Сырсөзүңүз жашырылган
177
+ password_shown_announcement: Сырсөзүңүз көрсөтүлгөн
178
+ previous_and_next_navigation:
179
+ next: Кийинки
180
+ pagination: Барактоо
181
+ previous: Мурунку
182
+ print_link:
183
+ text: Бул баракчаны басып чыгаруу
184
+ radio:
185
+ or: же
186
+ related_footer_navigation:
187
+ collections: Жыйнактар
188
+ policies: Саясаттар
189
+ statistical_data_sets: Статистикалык дайындардын топтомдору
190
+ topical_events: Актуалдуу окуялар
191
+ related_navigation:
192
+ collections: Жыйнак
193
+ external_links: Интернетте башка жерде
194
+ policies: Саясат
195
+ publishers: Бул тарабынан жарыяланды
196
+ related_contacts: Башка байланыштар
197
+ related_content: Байланышкан мазмун
198
+ related_external_links: Интернетте башка жерде
199
+ related_guides: Деталдуу жетекчилик
200
+ statistical_data_sets: Статистикалык дайындардын топтому
201
+ topical_events: Актуалдуу окуя
202
+ topics: Теманы изилдөө
203
+ ukraine:
204
+ title: Украинага басып кирүү
205
+ world_locations: Дүйнөдөгү жайгашкан жерлер
206
+ search_box:
207
+ input_title: Издөө
208
+ label: GOV.UK ичинен издөө
209
+ search_button: Издөө
210
+ share_links:
211
+ all_opens_in_new_tab: Төмөнкү шилтемелер жаңы өтмөктө ачылат
212
+ opens_in_new_tab: (жаңы таблицада ачат)
213
+ single_page_notification_button:
214
+ subscribe_text: Бул барак жөнүндө электрондук каттарды алыңыз
215
+ unsubscribe_text: Бул баракча тууралуу электрондук каттарды алууну токтотуу
216
+ skip_link:
217
+ text: Башкы мазмунга өтүү
218
+ step_by_step_nav:
219
+ hide: Жашыруу
220
+ hide_all: Бардык кадамдарды жашыруу
221
+ show: Көрсөтүү
222
+ show_all: Бардык кадамдарды көрсөтүү
223
+ step_by_step_nav_related:
224
+ part_of: Бөлүгү
225
+ subscription_links:
226
+ email_signup_link_text: Электрондук каттарды алуу
227
+ feed_link_label: Бул URL'ди көчүрүп, түрмөгүңүздүн окурманына чаптаңыз
228
+ feed_link_text: Түрмөккө жазылуу
229
+ subscriptions: Жазылуулар
230
+ success_alert:
231
+ success: Ийгилик
232
+ summary_list:
233
+ delete: Жок кылуу
234
+ edit: Өзгөртүү
235
+ table:
236
+ filter_count: киргизилген шарт үчүн натыйжалар
237
+ filter_label: Чыпка
238
+ filter_message: Бир да дал келген натыйжа жок
239
+ tabs:
240
+ contents: Мазмуну
@@ -1,3 +1,3 @@
1
1
  module GovukPublishingComponents
2
- VERSION = "58.0.0".freeze
2
+ VERSION = "58.1.0".freeze
3
3
  end
@@ -8,7 +8,6 @@ require "govuk_publishing_components/engine"
8
8
  require "govuk_publishing_components/version"
9
9
  require "govuk_publishing_components/presenters/shared_helper"
10
10
  require "govuk_publishing_components/presenters/component_wrapper_helper"
11
- require "govuk_publishing_components/presenters/absolute_links_helper"
12
11
  require "govuk_publishing_components/presenters/accordion_helper"
13
12
  require "govuk_publishing_components/presenters/attachment_helper"
14
13
  require "govuk_publishing_components/presenters/big_number_helper"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk_publishing_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 58.0.0
4
+ version: 58.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev
@@ -913,6 +913,7 @@ files:
913
913
  - config/locales/ka.yml
914
914
  - config/locales/kk.yml
915
915
  - config/locales/ko.yml
916
+ - config/locales/ky.yml
916
917
  - config/locales/lt.yml
917
918
  - config/locales/lv.yml
918
919
  - config/locales/ms.yml
@@ -962,7 +963,6 @@ files:
962
963
  - lib/govuk_publishing_components/engine.rb
963
964
  - lib/govuk_publishing_components/middleware/ga4_optimise.rb
964
965
  - lib/govuk_publishing_components/minitest/component_guide_test.rb
965
- - lib/govuk_publishing_components/presenters/absolute_links_helper.rb
966
966
  - lib/govuk_publishing_components/presenters/accordion_helper.rb
967
967
  - lib/govuk_publishing_components/presenters/attachment_helper.rb
968
968
  - lib/govuk_publishing_components/presenters/big_number_helper.rb
@@ -1,20 +0,0 @@
1
- module GovukPublishingComponents
2
- module Presenters
3
- class AbsoluteLinksHelper
4
- def make_url_absolute(href)
5
- # If the URL is already absolute do nothing
6
- unless href.start_with?("/")
7
- return href
8
- end
9
-
10
- host = ENV["VIRTUAL_HOST"] || Plek.new.website_root
11
-
12
- unless host.start_with?("http://", "https://", "//")
13
- host = "//#{host}" # '//' preserves the current protocol, we shouldn't force https as that would break dev environments
14
- end
15
-
16
- "#{host}#{href}"
17
- end
18
- end
19
- end
20
- end