private def redirectForPath()

in archive/app/controllers/ArchiveController.scala [136:152]


  private def redirectForPath(path: String)(implicit request: RequestHeader): Option[Result] =
    path match {
      case Gallery(gallery)   => Some(redirectTo(gallery))
      case Century(century)   => Some(redirectTo(century))
      case Guardian(endOfUrl) => Some(redirectTo(endOfUrl))
      case Lowercase(lower)   => Some(redirectTo(lower))

      // Googlebot hits a bunch of really old combiners and combiner RSS
      // bounce these to the section
      case CombinerSectionRss(section)             => Some(redirectTo(s"$section/rss"))
      case CombinerSection(section)                => Some(redirectTo(section))
      case Combiner(combiner)                      => Some(redirectTo(combiner))
      case DatedSpecialIndexPage(section, rest, _) => Some(redirectTo(section, rest, "all"))
      case SectionSpecialIndex(section, _)         => Some(redirectTo(section, "all"))
      case NewspaperPage(paper, date, book)        => Some(redirectTo(paper, book, date, "all"))
      case _                                       => None
    }