in app/controllers/Application.scala [168:182]
def redirect(stubId: Long) = AuthAction.async { request =>
stubsApi.getStub(stubId).map{
case Some(stub) if stub.composerId.isDefined => Redirect(
url = s"${config.composerUrl}/content/${stub.composerId.get}",
queryStringParams = request.queryString // forward any query params
)
case _ => NotFound
}.asFuture.map{
case Left(err) => {
logger.error(s"could not get stub with id $stubId, for redirect. Error: $err")
InternalServerError
}
case Right(result) => result
}
}