Scala style: either put the if-else statement on a single line, or use braces if it spans more than one line:

      val route = if (page == "organisation") {
        routes.Organisations.details(contributorId)
      }
      else {
        routes.People.details(contributorId)
      }