faker icon indicating copy to clipboard operation
faker copied to clipboard

Add resolve parameter to functions returning an image url

Open ST-DDT opened this issue 3 years ago • 0 comments

Clear and concise description of the problem

Currently the methods that generate random images return only a link to a generic endpoint which then redirects to the actual image. If you use these to generate some fake data, then the image your are seeing will differ every time you show it.

Suggested solution

Add a parameter that lets faker resolve the url for you (calling the target url get the redirect url and return that instead). That way you have actual links to the target image instead of a link that redirects to a random one.

Alternative

No response

Additional context

No response

ST-DDT avatar Feb 14 '22 17:02 ST-DDT