<commit_before>module BlueberryCMS
  class RootController < ApplicationController
    def index
      redirect_to I18n.with_locale(I18n.default_locale) { Page.root.to_path }
    end
  end<commit_msg>Fix 404 redirect (#14)<commit_after>module BlueberryCMS
  class RootController < ApplicationController
    def index
      page = BlueberryCMS::Page.find_by!(path: "/#{params[:path]}")
      redirect_to I18n.with_locale(I18n.default_locale) { page.to_path }
    end
  end
{'fraction_non_alphanumeric': 0.09148936170212765, 'fraction_numerical': 0.027659574468085105, 'mean_word_length': 4.413793103448276, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '127413', 'n_tokens_mistral': 159, 'n_tokens_neox': 146, 'n_words': 29}