Skip to content

Add redirect support#16

Open
kylejreed wants to merge 1 commit into
mattreid1:mainfrom
kylejreed:redirect-support
Open

Add redirect support#16
kylejreed wants to merge 1 commit into
mattreid1:mainfrom
kylejreed:redirect-support

Conversation

@kylejreed

Copy link
Copy Markdown
Contributor

Closes #12

Introduces a Context.redirect(url, alt, options) which sets up the proper headers for performing a redirect.

From Koa, passing back as the url will attempt to use the Referrer header, and fallback to the alt parameter (ex. Context.redirect('back', '/index.html'))

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

Successfully merging this pull request may close these issues.

Add an easy way to redirect to another site

1 participant