Skip to content

Commit 9d8eb0c

Browse files
committed
Update nav item seed data to use url helpers instead of path helpers for nav item rute names
1 parent e8ace54 commit 9d8eb0c

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

app/builders/better_together/navigation_builder.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -219,56 +219,56 @@ def build_host # rubocop:todo Metrics/MethodLength
219219
slug_en: 'host-dashboard',
220220
position: 0,
221221
item_type: 'link',
222-
route_name: 'host_dashboard_path'
222+
route_name: 'host_dashboard_url'
223223
},
224224
{
225225
title_en: 'Communities',
226226
slug_en: 'communities',
227227
position: 1,
228228
item_type: 'link',
229-
route_name: 'communities_path'
229+
route_name: 'communities_url'
230230
},
231231
{
232232
title_en: 'Navigation Areas',
233233
slug_en: 'navigation-areas',
234234
position: 2,
235235
item_type: 'link',
236-
route_name: 'navigation_areas_path'
236+
route_name: 'navigation_areas_url'
237237
},
238238
{
239239
title_en: 'Pages',
240240
slug_en: 'pages',
241241
position: 3,
242242
item_type: 'link',
243-
route_name: 'pages_path'
243+
route_name: 'pages_url'
244244
},
245245
{
246246
title_en: 'People',
247247
slug_en: 'people',
248248
position: 4,
249249
item_type: 'link',
250-
route_name: 'people_path'
250+
route_name: 'people_url'
251251
},
252252
{
253253
title_en: 'Platforms',
254254
slug_en: 'platforms',
255255
position: 5,
256256
item_type: 'link',
257-
route_name: 'platforms_path'
257+
route_name: 'platforms_url'
258258
},
259259
{
260260
title_en: 'Roles',
261261
slug_en: 'roles',
262262
position: 6,
263263
item_type: 'link',
264-
route_name: 'roles_path'
264+
route_name: 'roles_url'
265265
},
266266
{
267267
title_en: 'Resource Permissions',
268268
slug_en: 'resource_permissions',
269269
position: 7,
270270
item_type: 'link',
271-
route_name: 'resource_permissions_path'
271+
route_name: 'resource_permissions_url'
272272
}
273273
]
274274

0 commit comments

Comments
 (0)