Answers an url with an HTTP redirection, before any Shiny code runs. To
redirect from inside a page server instead, see server_redirect().
Value
A redirect object, to be passed to brochureApp().
See also
server_redirect() to redirect from inside a page server.
Examples
redirect(
from = "/index.html",
to = "/"
)
#> $from
#> [1] "/index.html"
#>
#> $to
#> [1] "/"
#>
#> $code
#> [1] 301
#>
#> $method
#> [1] "GET"
#>
#> attr(,"class")
#> [1] "redirect" "list"
# 301 says the move is permanent, 302 that it is temporary
redirect(
from = "/old",
to = "/new",
code = 302
)
#> $from
#> [1] "/old"
#>
#> $to
#> [1] "/new"
#>
#> $code
#> [1] 302
#>
#> $method
#> [1] "GET"
#>
#> attr(,"class")
#> [1] "redirect" "list"
