Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shiny server setting to accept URL parameters for initial values of UI elements #516

Open
geotheory opened this issue Mar 3, 2022 · 2 comments

Comments

@geotheory
Copy link

I wonder if there is any appetite for enabling a Shiny server setting for UI elements to prioritise initial values from URL parameters if present. For example:

./shiny/sample-apps/rmd/?region=Europe

This would enable more seemless iframe integration of apps within websites, and negate need for a lot of URL hash string parsing.

@llrs
Copy link

llrs commented Aug 23, 2022

I think this is already possible via the bookmark option in shiny: https://shiny.rstudio.com/articles/bookmarking-state.html

@geotheory
Copy link
Author

geotheory commented Aug 25, 2022

This is good and I wasn't aware of it so thank you. It is still a problem for me because unless I'm mistaken it works only with ULR params (?_inputs_&n=200) rather than hash strings (#_inputs_&n=200). This is an issue for me because - as I've recently discovered - variables in a URL hash string will when changed automatically update in an iframe-embedded Shiny app whereas URL params do not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants