Skip to content

Commit 90e287d

Browse files
committed
adjust home page slug and default behaviour
1 parent dc3319f commit 90e287d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/builders/better_together/navigation_builder.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ def create_unassociated_pages # rubocop:todo Metrics/MethodLength
287287
[
288288
{
289289
title: 'Home',
290-
slug: 'home-page',
290+
slug: 'home',
291291
published_at: Time.zone.now,
292292
privacy: 'public',
293293
protected: true,

app/controllers/better_together/pages_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def handle404
101101
path = params[:path]
102102

103103
# If page is not found and the path is one of the variants of the root path, render community engine promo page
104-
if ['home-page', "/#{I18n.locale}/", "/#{I18n.locale}", I18n.locale.to_s, 'bt', '/'].include?(path)
104+
if ['home-page', 'home', "/#{I18n.locale}/", "/#{I18n.locale}", I18n.locale.to_s, 'bt', '/'].include?(path)
105105
render 'better_together/static_pages/community_engine'
106106
else
107107
render_404

0 commit comments

Comments
 (0)