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

Retrieve "final" URL after redirects #417

Open
MathiasVie opened this issue Aug 3, 2021 · 2 comments
Open

Retrieve "final" URL after redirects #417

MathiasVie opened this issue Aug 3, 2021 · 2 comments

Comments

@MathiasVie
Copy link

This is not an issue (rather a feature request) but I would like to know if there is a way to retrieve the "final" URL of the page Pageres made the screenshot. Many pages have redirects e.g. requesting a screenshot with the url http://sap.com redirects me to https://www.sap.com/. Thanks!

@sindresorhus
Copy link
Owner

Not possible at the moment. What do you need it for? Maybe there's a better way.

@MathiasVie
Copy link
Author

For my use case I need the url as well as the page title. At the moment we need an additional service (with an extra request) to retrieve this information. I just thought it would be great if the promise could return this basic meta data as well. But anyway: awesome work!

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

No branches or pull requests

2 participants