Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a server-side event when a redirect is found #30

Open
abea opened this issue Apr 29, 2021 · 1 comment
Open

Add a server-side event when a redirect is found #30

abea opened this issue Apr 29, 2021 · 1 comment

Comments

@abea
Copy link

abea commented Apr 29, 2021

The problem to solve

There's no good way to take additional actions, such as tracking redirect use, before a redirect executes

Proposed solution

We emit a Promise event after a matching redirect is found and include both the original URL and its destination.

Alternatives

We could break up the middleware into methods more so they could be edited with the super pattern.

Additional context

This came up from a question in Discord: https://discord.com/channels/517772094482677790/517782236800745495/837372820182401024

@boutell
Copy link
Contributor

boutell commented May 3, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants