-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Full Request URL Data #3078
Comments
Unfortunately, It might be better to use a predefined environment variable with a URL like Vercel and Netlify do. |
Referrer is also supposed to be the url of the referring site, nut the current one... |
5 tasks
This will be fixed by #3126 |
Rich-Harris
added a commit
that referenced
this issue
Dec 30, 2021
Rich-Harris
added a commit
that referenced
this issue
Dec 30, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the problem
I redirect users to external auth providers that accept a redirect url as a query parameter. In order to do this from a hook I need to rebuild the url by combining the various pieces by hand and some environment information to determine protocol. This is inconvenient and doesn't easily allow using the platform.
Describe the proposed solution
I'd like a
url: URL
property on theServerRequest
. It does mean all the adapters need tweaking, but it feels like a reasonable need for a web server.Alternatives considered
Building the full URL by hand.
Importance
would make my life easier
Additional Information
No response
The text was updated successfully, but these errors were encountered: