View source: R/brochure-fns-routr.R
| redirect | R Documentation |
Answers an url with an HTTP redirection, before any Shiny code runs. To
redirect from inside a page server instead, see server_redirect().
redirect(from, to, code = 301, method = "GET")
from |
the url to redirect from |
to |
the url to redirect to |
code |
redirecting http code, one of 301, 302, 303, 307 or 308 |
method |
The HTTP method the redirection answers to.
Defaults to |
A redirect object, to be passed to brochureApp().
server_redirect() to redirect from inside a page server.
redirect(
from = "/index.html",
to = "/"
)
# 301 says the move is permanent, 302 that it is temporary
redirect(
from = "/old",
to = "/new",
code = 302
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.