Hi @ozaneseriu,
Welcome to the community!
You can turn off the “Automatically follow redirects” setting in the Request settings.
You can also change this in your global settings if you want to set it for every request.
Then, on the response, you can get the Location
header with pm.response.headers.get('location')
.
Hope this helps.
Best,
Kevin