This function returns any url parameters passed to the application as a named list. Keep in mind url parameters are always user-session scoped
get_url_parameters(session)
shiny session object
named list of url parameters and values. List may be empty if no URL parameters were passed when the application instance was launched
Call this function from program/server_local.R
or any other server file
library(shiny)
library(periscope2)
# Display application info
observeEvent(input$app_info, {
url_params <- get_url_parameters(session)
show_alert(html = TRUE,
showCloseButton = FALSE,
animation = "slide-from-top",
closeOnClickOutside = TRUE,
text = url_params[["passed_paramter"]],
title = "alert title")
})