Redirect the user to another URL

1,656 views
Skip to first unread message

Mark Edmondson

unread,
Feb 16, 2015, 12:59:22 PM2/16/15
to shiny-...@googlegroups.com
Hi is it possible via Shiny to redirect users or update the URL?

I have an app that requests an API, which returns a security code in the URL.  Ideally I'd like to use shiny to read the parameter server side, and then redirect the user to a clean URL.  Is this possible, or does it need some JavaScript?

Thanks again for a great app,
Yours sincerely,
Mark

Winston Chang

unread,
Feb 16, 2015, 2:57:02 PM2/16/15
to Mark Edmondson, shiny-discuss
I think you'd have to write some Javascript to do this. This example of a Shiny app with Javascript might be helpful:
Source code:

And here's how to redirect with Javascript:


--
You received this message because you are subscribed to the Google Groups "Shiny - Web Framework for R" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shiny-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shiny-discuss/048dc7a2-2c97-46c6-ba58-1da17b77ed5b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Mark Edmondson

unread,
Feb 16, 2015, 4:53:53 PM2/16/15
to Winston Chang, shiny-discuss
Cool, thanks Winston
Reply all
Reply to author
Forward
0 new messages