Skip to content

Commit

Permalink
Remove single category redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
tmichaelreis committed Oct 21, 2024
1 parent 98c1156 commit 1e33999
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion app/controllers/home_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ def index
set_locale
@courses = Course.published.limit(2)
@categories = get_categories
redirect_to category_path(@categories.first) if @categories.count == 1
@getting_started = @categories.where(tag: "Getting Started")
@hardware = @categories.where(tag: "Hardware")
@software_and_applications = @categories.where(tag: "Software & Applications")
Expand Down

0 comments on commit 1e33999

Please sign in to comment.