R/server-side.R

Defines functions server_redirect

Documented in server_redirect

#' Do a server side redirection
#'
#' @param to the destination of the redirection
#' @param session shiny session object, default is `shiny::getDefaultReactiveDomain()`
#'
#' @export
server_redirect <- function(
  to,
  session = shiny::getDefaultReactiveDomain()
) {
  session$sendCustomMessage(
    "redirect",
    to
  )
}
ColinFay/brochure documentation built on March 30, 2022, 5:02 a.m.