I have this shiny app, with an wordcloud. I need that when the user clicks on the word it opens a new url. I've managed to get to the word when the user click on it and update the query string.
Here's what i've done:
observe({
if (!is.null(input$selected_word))
{
querystring <- paste("?lookfor=",gsub(":.*","",isolate(input$selected_word)),sep="")
updateQueryString(querystring, mode = c("replace","push"),
session = getDefaultReactiveDomain())
}
else { }
})
The problem is that this shiny app is inside an iframe
, and it reloads itself. I needed to redirect to the main website, for example: www.mywebsite.com/?lookfor=word
How to do so?